--- parser3/src/classes/response.C 2003/02/26 11:29:56 1.23.2.7 +++ parser3/src/classes/response.C 2017/02/07 22:00:29 1.32 @@ -1,16 +1,17 @@ /** @file Parser: @b response parser class. - Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2017 Art. Lebedev Studio (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_RESPONSE_C="$Date: 2003/02/26 11:29:56 $"; - #include "classes.h" #include "pa_vmethod_frame.h" #include "pa_request.h" +#include "pa_vresponse.h" + +volatile const char * IDENT_RESPONSE_C="$Id: response.C,v 1.32 2017/02/07 22:00:29 moko Exp $"; // class @@ -23,11 +24,11 @@ public: // Methoded // global variable -DECLARE_CLASS_VAR(response, new MResponse, 0); +DECLARE_CLASS_VAR(response, new MResponse); // methods -static void _clear(Request& r, StringPtr method_name, MethodParams* ) { +static void _clear(Request& r, MethodParams&) { GET_SELF(r, VResponse).fields().clear(); } @@ -35,5 +36,5 @@ static void _clear(Request& r, StringPtr MResponse::MResponse(): Methoded("response") { // ^clear[] - add_native_method("clear", Method::CT_DYNAMIC, _clear, 0, 0); + add_native_method("clear", Method::CT_STATIC, _clear, 0, 0); }