--- parser3/src/classes/Attic/dnode.C 2001/09/20 07:31:51 1.3 +++ 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.3 2001/09/20 07:31:51 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" @@ -67,7 +64,7 @@ static void _select(Request& r, const St result.set_name(method_name); r.write_no_lang(result); } catch(const XSLException& e) { - _throw(pool, &expression, e); + r._throw(&expression, e); } } @@ -98,7 +95,7 @@ static void _select_single(Request& r, c r.write_no_lang(result); } } catch(const XSLException& e) { - _throw(pool, &expression, e); + r._throw(&expression, e); } } @@ -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 + ; }