--- parser3/src/classes/Attic/dnode.C 2001/09/20 14:25:06 1.4 +++ parser3/src/classes/Attic/dnode.C 2001/09/26 10:32:25 1.6 @@ -2,17 +2,13 @@ Parser: @b dom parser class. Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - 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 $"; - -#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 + $Id: dnode.C,v 1.6 2001/09/26 10:32:25 parser Exp $ +*/ #include "classes.h" +#ifdef XML + #include "pa_request.h" #include "pa_vdnode.h" @@ -118,8 +114,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 + ; }