--- parser3/src/classes/response.C 2001/04/27 16:48:21 1.7.4.2 +++ parser3/src/classes/response.C 2001/04/28 08:43:48 1.8 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: response.C,v 1.7.4.2 2001/04/27 16:48:21 paf Exp $ + $Id: response.C,v 1.8 2001/04/28 08:43:48 paf Exp $ */ #include "classes.h" @@ -31,12 +31,12 @@ static void _clear(Request& r, const Str // constructor -MResponse::MResponse(Pool& pool) : Methoded(pool) { - set_name(new(pool) String(pool, RESPONSE_CLASS_NAME)); +MResponse::MResponse(Pool& apool) : Methoded(apool) { + set_name(*NEW String(pool(), RESPONSE_CLASS_NAME)); // ^clear[] - vclass.add_native_method("clear", Method::CT_DYNAMIC, _clear, 0, 0); + add_native_method("clear", Method::CT_DYNAMIC, _clear, 0, 0); } // global variable