--- parser3/src/classes/xnode.C 2003/02/04 15:15:03 1.54.2.4 +++ parser3/src/classes/xnode.C 2003/02/17 12:13:43 1.54.2.6 @@ -7,7 +7,7 @@ #include "classes.h" #ifdef XML -static const char* IDENT_XNODE_C="$Date: 2003/02/04 15:15:03 $"; +static const char* IDENT_XNODE_C="$Date: 2003/02/17 12:13:43 $"; #include "pa_vmethod_frame.h" @@ -26,6 +26,10 @@ extern "C" { #include "gdome.h" #include "libxml/xpath.h" +// global variable + +MethodedPtr xnode_class(new MXnode); + // classes class xmlXPathObject_auto_ptr { @@ -344,11 +348,7 @@ static void _getElementsByTagName(Reques gulong length=gdome_nl_length(nodes, &exc); for(gulong i=0; ihash(0); for(int i=0; inodesetval->nodeTab[i]))); @@ -680,19 +672,10 @@ MXnode::MXnode(Pool& apool, const char* } -// global variable +#else -Methoded *Xnode_class; +// global variable -#endif +MethodedPtr xnode_class(0); // fictive -// creator -Methoded *MXnode_create(Pool& pool) { - return -#ifdef XML - Xnode_class=new(pool) MXnode(pool) -#else - 0 #endif - ; -}