--- parser3/src/classes/int.C 2013/03/09 22:58:50 1.62 +++ parser3/src/classes/int.C 2016/03/31 21:46:20 1.65 @@ -1,7 +1,7 @@ /** @file Parser: @b int parser class. - Copyright (c) 2001-2012 Art. Lebedev Studio (http://www.artlebedev.com) + Copyright (c) 2001-2015 Art. Lebedev Studio (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ @@ -13,7 +13,7 @@ #include "pa_vint.h" #include "pa_vbool.h" -volatile const char * IDENT_INT_C="$Id: int.C,v 1.62 2013/03/09 22:58:50 moko Exp $" IDENT_PA_VINT_H; +volatile const char * IDENT_INT_C="$Id: int.C,v 1.65 2016/03/31 21:46:20 moko Exp $" IDENT_PA_VINT_H; // externs @@ -28,21 +28,21 @@ public: // global variable -DECLARE_CLASS_VAR(int, new MInt, 0); +DECLARE_CLASS_VAR(int, new MInt); // methods -static void _int(Request& r, MethodParams& params) { +static void _int(Request& r, MethodParams&) { VInt& vint=GET_SELF(r, VInt); r.write_no_lang(*new VInt(vint.get_int())); } -static void _double(Request& r, MethodParams& params) { +static void _double(Request& r, MethodParams&) { VInt& vint=GET_SELF(r, VInt); r.write_no_lang(*new VDouble(vint.as_double())); } -static void _bool(Request& r, MethodParams& params) { +static void _bool(Request& r, MethodParams&) { VInt& vint=GET_SELF(r, VInt); r.write_no_lang(VBool::get(vint.as_bool())); }