xerces-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DLev...@CombineNet.com
Subject src/util/NameIdPool.c fix
Date Fri, 02 Feb 2001 16:46:42 GMT
Hi,

g++ 2.96 on RedHat 7.0 complains that the (NameIdPoolEnumerator copy
constructor doesn't initialize its base class.

A patch is below, and here's a log entry:

(NameIdPoolEnumerator copy ctor): added XMLEnumerator<TElem> (toCopy) to
base/member initialization section to prevent warning from RedHat 7.0 g++.

Thanks,
David

8<----------8<----------8<----------8<----------8<----------8<----------8<----

--- NameIdPool.c	2000/03/02 19:54:42	1.3
+++ NameIdPool.c	2001/02/02 15:38:56	1.4
@@ -356,8 +357,8 @@
 
 template <class TElem> NameIdPoolEnumerator<TElem>::
 NameIdPoolEnumerator(const NameIdPoolEnumerator<TElem>& toCopy) :
-
-    fCurIndex(toCopy.fCurIndex)
+    XMLEnumerator<TElem> (toCopy)
+    , fCurIndex(toCopy.fCurIndex)
     , fToEnum(toCopy.fToEnum)
 {
 }

Mime
View raw message