X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/26d5d878270d01123669ba6a38c306c398ed7b8d..d3819ef7b806ccd92a767ec4bb43e0388f879216:/stglibs/srvconf.lib/parser_get_users.cpp?ds=inline diff --git a/stglibs/srvconf.lib/parser_get_users.cpp b/stglibs/srvconf.lib/parser_get_users.cpp index 8f83211f..d4e44d36 100644 --- a/stglibs/srvconf.lib/parser_get_users.cpp +++ b/stglibs/srvconf.lib/parser_get_users.cpp @@ -21,8 +21,12 @@ #include "stg/parser_get_users.h" +#include + +#include + PARSER_GET_USERS::PARSER_GET_USERS() - : callabck(NULL), + : callback(NULL), data(NULL), depth(0) { @@ -49,7 +53,7 @@ if (depth > 0) if (depth == 0) if (callback) - callback(&info, data); + callback(info, data); } //----------------------------------------------------------------------------- void PARSER_GET_USERS::ParseUsers(const char * el, const char ** /*attr*/) @@ -66,7 +70,7 @@ info.push_back(userInfo); void PARSER_GET_USERS::SetCallback(CALLBACK f, void * d) { callback = f; -data = data; +data = d; } //----------------------------------------------------------------------------- void PARSER_GET_USERS::UserCallback(const PARSER_GET_USER::INFO & info, void * data)