--- parser3/src/classes/Attic/root.C 2001/03/13 17:17:25 1.40 +++ parser3/src/classes/Attic/root.C 2001/03/18 13:38:45 1.41 @@ -3,7 +3,7 @@ Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: root.C,v 1.40 2001/03/13 17:17:25 paf Exp $ + $Id: root.C,v 1.41 2001/03/18 13:38:45 paf Exp $ */ #include @@ -191,9 +191,9 @@ static void _eval(Request& r, const Stri method_name, "fmt must not be junction"); Pool& pool=r.pool(); - String *string=new(pool) String(pool); - string->APPEND_CONST(format(pool, result->get_double(), fmt.as_string().cstr())); - result=new(pool) VString(*string); + String& string=*new(pool) String(pool); + string.APPEND_CONST(format(pool, result->get_double(), fmt.as_string().cstr())); + result=new(pool) VString(string); } r.write_no_lang(*result); }