X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/641204dfbdb9fc870cdd2e7f9e3169a44693e7bf..747017e39d73c3948c988b0d0cf6f1a18e25c4b3:/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..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(); } //-----------------------------------------------------------------------------