]> git.stg.codes - stg.git/blobdiff - stargazer/plugins/configuration/sgconfig/parser_admins.cpp
Replace boost::scoped_ptr with std::unique_ptr.
[stg.git] / stargazer / plugins / configuration / sgconfig / parser_admins.cpp
index 0db867bb3e680e1132e59a7c7a1aaaac29a0891f..f3a9aa31f24ea1994826af8190da47f801a03410 100644 (file)
@@ -57,7 +57,7 @@ void GET_ADMINS::CreateAnswer()
                          (ac.priv.userAddDel << 8) +
                          (ac.priv.adminChg << 10) +
                          (ac.priv.tariffChg << 12);
                          (ac.priv.userAddDel << 8) +
                          (ac.priv.adminChg << 10) +
                          (ac.priv.tariffChg << 12);
-        m_answer += "<admin login=\"" + ac.login + "\" priv=\"" + x2str(p) + "\"/>";
+        m_answer += "<admin login=\"" + ac.login + "\" priv=\"" + std::to_string(p) + "\"/>";
     }
     m_admins.CloseSearch(h);
     m_answer += "</Admins>";
     }
     m_admins.CloseSearch(h);
     m_answer += "</Admins>";