X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/af9452155f0892e1d2862efad4a87861ca60867d..a500fb72810060e52d87ad2c2e4691531f0bcc5a:/libs/srvconf/parsers/chg_admin.cpp?ds=sidebyside diff --git a/libs/srvconf/parsers/chg_admin.cpp b/libs/srvconf/parsers/chg_admin.cpp index ca2d8003..31fbd4a4 100644 --- a/libs/srvconf/parsers/chg_admin.cpp +++ b/libs/srvconf/parsers/chg_admin.cpp @@ -27,14 +27,14 @@ using namespace STG; -std::string CHG_ADMIN::Serialize(const ADMIN_CONF_RES & conf, const std::string & /*encoding*/) +std::string ChgAdmin::serialize(const AdminConfOpt& conf, const std::string& /*encoding*/) { -std::string params; -if (!conf.login.empty()) - params += " login=\"" + conf.login.data() + "\""; -if (!conf.password.empty()) - params += " password=\"" + conf.password.data() + "\""; -if (!conf.priv.empty()) - params += " priv=\"" + std::to_string(conf.priv.data().ToInt()) + "\""; -return params; + std::string params; + if (!conf.login.empty()) + params += " login=\"" + conf.login.data() + "\""; + if (!conf.password.empty()) + params += " password=\"" + conf.password.data() + "\""; + if (!conf.priv.empty()) + params += " priv=\"" + std::to_string(conf.priv.data().toInt()) + "\""; + return params; }