--- parser3/src/classes/double.C 2007/04/23 10:30:09 1.61 +++ parser3/src/classes/double.C 2010/10/21 15:06:27 1.63 @@ -1,11 +1,11 @@ /** @file Parser: @b double parser class. - Copyright (c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2009 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_DOUBLE_C="$Date: 2007/04/23 10:30:09 $"; +static const char * const IDENT_DOUBLE_C="$Date: 2010/10/21 15:06:27 $"; #include "classes.h" #include "pa_vmethod_frame.h" @@ -24,8 +24,6 @@ void _string_format(Request& r, MethodPa class MDouble: public Methoded { public: MDouble(); -public: // Methoded - bool used_directly() { return true; } }; // global variable @@ -58,7 +56,7 @@ static void _bool(Request& r, MethodPara params.as_double(0, "default must be bool", r); VDouble& vdouble=GET_SELF(r, VDouble); - r.write_no_lang(*new VBool(vdouble.as_bool())); + r.write_no_lang(VBool::get(vdouble.as_bool())); } typedef void (*vdouble_op_func_ptr)(VDouble& vdouble, double param);