--- parser3/src/classes/bool.C 2013/03/09 22:58:50 1.5 +++ parser3/src/classes/bool.C 2026/04/25 13:38:46 1.14 @@ -1,8 +1,8 @@ /** @file Parser: @b int parser class. - Copyright (c) 2001-2012 Art. Lebedev Studio (http://www.artlebedev.com) - Author: Alexandr Petrosian (http://paf.design.ru) + Copyright (c) 2001-2026 Art. Lebedev Studio (https://www.artlebedev.com) + Authors: Konstantin Morshnev , Alexandr Petrosian */ #include "classes.h" @@ -13,7 +13,7 @@ #include "pa_vint.h" #include "pa_vbool.h" -volatile const char * IDENT_BOOL_C="$Id: bool.C,v 1.5 2013/03/09 22:58:50 moko Exp $" IDENT_PA_VBOOL_H; +volatile const char * IDENT_BOOL_C="$Id: bool.C,v 1.14 2026/04/25 13:38:46 moko Exp $" IDENT_PA_VBOOL_H; // externs @@ -28,22 +28,22 @@ public: // global variable -DECLARE_CLASS_VAR(bool, new MBool, 0); +DECLARE_CLASS_VAR(bool, new MBool); // methods -static void _int(Request& r, MethodParams& params) { +static void _int(Request& r, MethodParams&) { VBool& vbool=GET_SELF(r, VBool); - r.write_no_lang(*new VInt(vbool.as_bool())); + r.write(*new VInt(vbool.as_bool())); } -static void _double(Request& r, MethodParams& params) { +static void _double(Request& r, MethodParams&) { VBool& vbool=GET_SELF(r, VBool); - r.write_no_lang(*new VDouble(vbool.as_bool())); + r.write(*new VDouble(vbool.as_bool())); } -static void _bool(Request& r, MethodParams& params) { - r.write_no_lang(GET_SELF(r, VBool)); +static void _bool(Request& r, MethodParams&) { + r.write(GET_SELF(r, VBool)); } // constructor