X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/4c030cdad118fd574774f0fd00313e0042401c7c..2da962edada912d8081f7e15db0ac887b98b179e:/stglibs/srvconf.lib/parsers/chg_user.cpp?ds=inline diff --git a/stglibs/srvconf.lib/parsers/chg_user.cpp b/stglibs/srvconf.lib/parsers/chg_user.cpp index a7d35925..f05c21fd 100644 --- a/stglibs/srvconf.lib/parsers/chg_user.cpp +++ b/stglibs/srvconf.lib/parsers/chg_user.cpp @@ -21,15 +21,13 @@ #include "chg_user.h" -#include - #include using namespace STG; -CHG_USER::PARSER::PARSER() - : callback(NULL), - data(NULL), +CHG_USER::PARSER::PARSER(CALLBACK f, void * d) + : callback(f), + data(d), depth(0) { } @@ -63,9 +61,3 @@ if (attr && attr[0] && attr[1]) else callback(false, "Invalid response.", data); } -//----------------------------------------------------------------------------- -void CHG_USER::PARSER::SetCallback(CALLBACK f, void * d) -{ -callback = f; -data = d; -}