X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/1347f3d1e04bedd1508589173f577673ee2c5554..14fbadc58e3d6f6faa45d1d90fe1340f177ef045:/projects/stargazer/plugins/configuration/sgconfig/parser_admin.cpp?ds=inline diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser_admin.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser_admin.cpp index 9d87f300..b1285a77 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser_admin.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser_admin.cpp @@ -213,11 +213,11 @@ void PARSER_CHG_ADMIN::CreateAnswer() answerList->erase(answerList->begin(), answerList->end()); -if (!login.res_empty()) +if (!login.empty()) { ADMIN * origAdmin = NULL; - if (admins->Find(login, &origAdmin)) + if (admins->Find(login.data(), &origAdmin)) { answerList->push_back(std::string(""); return; @@ -225,10 +225,10 @@ if (!login.res_empty()) ADMIN_CONF conf(origAdmin->GetConf()); - if (!password.res_empty()) + if (!password.empty()) conf.password = password.data(); - if (!privAsString.res_empty()) + if (!privAsString.empty()) { int p = 0; if (str2x(privAsString.data().c_str(), p) < 0)