X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/4c030cdad118fd574774f0fd00313e0042401c7c..2da962edada912d8081f7e15db0ac887b98b179e:/stglibs/srvconf.lib/parsers/auth_by.cpp diff --git a/stglibs/srvconf.lib/parsers/auth_by.cpp b/stglibs/srvconf.lib/parsers/auth_by.cpp index 99e3c021..61f590bf 100644 --- a/stglibs/srvconf.lib/parsers/auth_by.cpp +++ b/stglibs/srvconf.lib/parsers/auth_by.cpp @@ -20,15 +20,13 @@ #include "auth_by.h" -#include - #include // strcasecmp using namespace STG; -AUTH_BY::PARSER::PARSER() - : callback(NULL), - data(NULL), +AUTH_BY::PARSER::PARSER(CALLBACK f, void * d) + : callback(f), + data(d), depth(0), parsingAnswer(false) { @@ -79,9 +77,3 @@ if (depth == 0) error.clear(); } } -//----------------------------------------------------------------------------- -void AUTH_BY::PARSER::SetCallback(CALLBACK f, void * d) -{ -callback = f; -data = d; -}