--- parser3/src/classes/Attic/dnode.C 2001/09/20 14:25:06 1.4 +++ parser3/src/classes/Attic/dnode.C 2001/09/21 14:46:09 1.5 @@ -5,14 +5,11 @@ Author: Alexander Petrosyan (http://design.ru/paf) */ -static const char *RCSId="$Id: dnode.C,v 1.4 2001/09/20 14:25:06 parser Exp $"; +#include "classes.h" +#ifdef XML -#if _MSC_VER -# pragma warning(disable:4291) // disable warning -// "no matching operator delete found; memory will not be freed if initialization throws an exception -#endif +static const char *RCSId="$Id: dnode.C,v 1.5 2001/09/21 14:46:09 parser Exp $"; -#include "classes.h" #include "pa_request.h" #include "pa_vdnode.h" @@ -118,8 +115,15 @@ MDnode::MDnode(Pool& apool) : Methoded(a Methoded *Dnode_class; -// creator +#endif +// creator Methoded *MDnode_create(Pool& pool) { - return Dnode_class=new(pool) MDnode(pool); + return +#ifdef XML + Dnode_class=new(pool) MDnode(pool) +#else + 0 +#endif + ; }