From fc520a50c9753f6cb34e06ea27b7817d7ffe1b28 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Tue, 22 Mar 2011 15:17:35 +0200 Subject: [PATCH] Initialiaze some class members --- stglibs/srvconf.lib/parser.cpp | 6 ++++-- stglibs/srvconf.lib/servconf.h | 2 -- 2 files changed, 4 insertions(+), 4 deletions(-) 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; -- 2.43.2