From: Maxim Mamontov Date: Tue, 22 Mar 2011 13:17:35 +0000 (+0200) Subject: Initialiaze some class members X-Git-Tag: 2.407-rc3~116 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/fc520a50c9753f6cb34e06ea27b7817d7ffe1b28 Initialiaze some class members --- diff --git a/stglibs/srvconf.lib/parser.cpp b/stglibs/srvconf.lib/parser.cpp index 89b2457c..9373952e 100644 --- a/stglibs/srvconf.lib/parser.cpp +++ b/stglibs/srvconf.lib/parser.cpp @@ -34,7 +34,6 @@ #include #include "common.h" -//#include "srvconf_common.h" #include "stg_const.h" #include "servconf.h" @@ -46,6 +45,7 @@ using namespace std; PARSER_GET_USERS::PARSER_GET_USERS() : RecvUserDataCb(NULL), userDataCb(NULL), + user(), depth(0), error(false) { @@ -387,6 +387,7 @@ userDataCb = data; PARSER_GET_USER::PARSER_GET_USER() : RecvUserDataCb(NULL), userDataCb(NULL), + user(), depth(0), error(false) { @@ -665,7 +666,8 @@ PARSER_GET_SERVER_INFO::PARSER_GET_SERVER_INFO() : RecvServerInfoDataCb(NULL), serverInfoDataCb(NULL), depth(0), - error(false) + error(false), + serverInfo() { } //----------------------------------------------------------------------------- diff --git a/stglibs/srvconf.lib/servconf.h b/stglibs/srvconf.lib/servconf.h index 29151d62..a58d2952 100644 --- a/stglibs/srvconf.lib/servconf.h +++ b/stglibs/srvconf.lib/servconf.h @@ -204,7 +204,6 @@ private: RecvServerInfoDataCb_t RecvServerInfoDataCb; void * serverInfoDataCb; - USERDATA user; int depth; bool error; SERVERINFO serverInfo; @@ -268,7 +267,6 @@ private: NETTRANSACT nt; int parseDepth; - USERDATA ud; std::string errorMsg; int error;