--- parser3/src/classes/xnode.C 2003/02/04 15:15:03 1.54.2.4 +++ parser3/src/classes/xnode.C 2003/02/17 07:18:57 1.54.2.5 @@ -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 07:18:57 $"; #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 { @@ -680,19 +684,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 - ; -}