X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/641204dfbdb9fc870cdd2e7f9e3169a44693e7bf..167dbb4ec68681f83c8c15116f57ef7b8f749dea:/projects/stargazer/plugins/configuration/sgconfig/parser.cpp diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser.cpp index b62b292e..7fc2e23e 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser.cpp @@ -41,10 +41,6 @@ char s[UNAME_LEN + 128]; char un[UNAME_LEN]; struct utsname utsn; -int tariff_type; - -tariff_type = 2; - uname(&utsn); un[0] = 0; @@ -297,8 +293,9 @@ answerList->push_back(s); // GET USERS //----------------------------------------------------------------------------- PARSER_GET_USERS::PARSER_GET_USERS() + : lastUserUpdateTime(0), + lastUpdateFound(false) { -lastUserUpdateTime = 0; } //----------------------------------------------------------------------------- int PARSER_GET_USERS::ParseStart(void *, const char *el, const char ** attr) @@ -719,12 +716,13 @@ return -1; // PARSER CHG USER //----------------------------------------------------------------------------- PARSER_CHG_USER::PARSER_CHG_USER() + : usr(NULL), + ucr(NULL), + upr(NULL), + downr(NULL), + cashMustBeAdded(false), + res(0) { -usr = NULL; -ucr = NULL; -upr = NULL; -downr = NULL; - Reset(); } //-----------------------------------------------------------------------------