]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/sgconfig/parser_admins.cpp
Verbose test reports on failures.
[stg.git] / projects / stargazer / plugins / configuration / sgconfig / parser_admins.cpp
index bc47b7fd1ea07718fd4f1cd1319f7d745935368e..1de533d67f48868c6fe543860185943d58a02bfb 100644 (file)
@@ -145,13 +145,13 @@ void CHG_ADMIN::CreateAnswer()
 
         AdminConf conf(origAdmin->conf());
 
-        if (!password.empty())
-            conf.password = password.data();
+        if (password)
+            conf.password = password.value();
 
-        if (!privAsString.empty())
+        if (privAsString)
         {
             int p = 0;
-            if (str2x(privAsString.data().c_str(), p) < 0)
+            if (str2x(privAsString.value().c_str(), p) < 0)
             {
                 m_answer = "<" + m_tag + " Result = \"Incorrect parameter Priv.\"/>";
                 return;