]> git.stg.codes - stg.git/blobdiff - libs/srvconf/parsers/chg_admin.cpp
Merge pull request #1 from yuriio147/mysql-store-db-port
[stg.git] / libs / srvconf / parsers / chg_admin.cpp
index ca2d800367a5cba7781da887772e3adc9dd8b5bf..31fbd4a4322f35f0e053ce3be6f51d140fd0b573 100644 (file)
 
 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;
 }