--- parser3/src/classes/bool.C 2013/07/29 15:02:16 1.6 +++ 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.6 2013/07/29 15:02:16 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&) { 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&) { 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&) { - r.write_no_lang(GET_SELF(r, VBool)); + r.write(GET_SELF(r, VBool)); } // constructor