--- parser3/src/main/pa_request.C 2001/12/21 12:47:56 1.188 +++ parser3/src/main/pa_request.C 2001/12/26 08:46:13 1.190 @@ -4,7 +4,7 @@ Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://paf.design.ru) - $Id: pa_request.C,v 1.188 2001/12/21 12:47:56 paf Exp $ + $Id: pa_request.C,v 1.190 2001/12/26 08:46:13 paf Exp $ */ #include "pa_sapi.h" @@ -33,11 +33,7 @@ Methoded *MOP_create(Pool&); static void load_charset(const Hash::Key& akey, Hash::Val *avalue, void *) { - Value& value=*static_cast(avalue); - - if(!charsets->get(akey)) // don't we know that charset? - charsets->put(akey, - new(charsets->pool()) Charset(charsets->pool(), akey, &value.as_string())); + charsets->load_charset(akey, static_cast(avalue)->as_string()); } // @@ -228,8 +224,7 @@ gettimeofday(&mt[0],NULL); gettimeofday(&mt[1],NULL); #endif // execute @main[] - const String *body_string=execute_virtual_method( - *main_class, *main_method_name); + const String *body_string=execute_virtual_method(*main_class, *main_method_name); if(!body_string) throw Exception(0,0, 0,