X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/641204dfbdb9fc870cdd2e7f9e3169a44693e7bf..f1a252c45aa05f39839b6d4cb3c741a16d80c719:/projects/stargazer/plugins/configuration/sgconfig/parser.cpp?ds=sidebyside diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser.cpp index b62b292e..4658d56f 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(); } //----------------------------------------------------------------------------- @@ -1003,11 +1001,6 @@ switch (res) break; } -} -//----------------------------------------------------------------------------- -int PARSER_CHG_USER::CheckUserData() -{ -return true; } //----------------------------------------------------------------------------- int PARSER_CHG_USER::AplayChanges()