--- parser3/src/classes/void.C 2003/04/02 10:10:00 1.28.2.5.2.8 +++ parser3/src/classes/void.C 2004/02/11 15:33:13 1.31 @@ -1,11 +1,11 @@ /** @file Parser: @b VOID parser class. - Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2004 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_VOID_C="$Date: 2003/04/02 10:10:00 $"; +static const char * const IDENT_VOID_C="$Date: 2004/02/11 15:33:13 $"; #include "classes.h" #include "pa_vmethod_frame.h" @@ -31,28 +31,28 @@ DECLARE_CLASS_VAR(void, new MVoid, 0); // methods -static void _length(Request& r, MethodParams* /*params*/) { +static void _length(Request& r, MethodParams&) { // always zero r.write_no_lang(*new VInt(0)); } -static void _pos(Request& r, MethodParams* params) { +static void _pos(Request& r, MethodParams& params) { // just checking for consistency - params->as_no_junction(0, "substr must not be code"); + params.as_no_junction(0, "substr must not be code"); // never found r.write_no_lang(*new VInt(-1)); } -static void _int(Request& r, MethodParams* params) { +static void _int(Request& r, MethodParams& params) { VVoid& vvoid=GET_SELF(r, VVoid); r.write_no_lang(*new VInt( - params->count()==0?vvoid.as_int():params->as_int(0, "default must be int", r))); + params.count()==0?vvoid.as_int():params.as_int(0, "default must be int", r))); } -static void _double(Request& r, MethodParams* params) { +static void _double(Request& r, MethodParams& params) { VVoid& vvoid=GET_SELF(r, VVoid); r.write_no_lang(*new VDouble( - params->count()==0?vvoid.as_double():params->as_double(0, "default must be double", r))); + params.count()==0?vvoid.as_double():params.as_double(0, "default must be double", r))); } #ifndef DOXYGEN @@ -73,8 +73,8 @@ public: }; #endif -static void _sql(Request& r, MethodParams* params) { - Value& statement=params->as_junction(0, "statement must be code"); +static void _sql(Request& r, MethodParams& params) { + Value& statement=params.as_junction(0, "statement must be code"); Temp_lang temp_lang(r, String::L_SQL); const String& statement_string=r.process_to_string(statement);