]> git.stg.codes - stg.git/blobdiff - stargazer/plugins/configuration/sgconfig/parser_user_info.cpp
Remove x2str/unsigned2str in favor of std::to_string.
[stg.git] / stargazer / plugins / configuration / sgconfig / parser_user_info.cpp
index 89dd3883a1ae56e4f85c348cbb5dda50c2de871d..91de27ac8de401ff01f345d87ac2339ba9e4ae5f 100644 (file)
@@ -50,8 +50,8 @@ void USER_INFO::CreateAnswer()
         return;
     }
 
-    m_answer = "<UserInfo lastAuthTime=\"" + x2str(u->GetAuthorizedModificationTime()) + "\"" +
-             " lastDisconnectTime=\"" + x2str(u->GetConnectedModificationTime()) + "\"" +
+    m_answer = "<UserInfo lastAuthTime=\"" + std::to_string(u->GetAuthorizedModificationTime()) + "\"" +
+             " lastDisconnectTime=\"" + std::to_string(u->GetConnectedModificationTime()) + "\"" +
              " connected=\"" + (u->GetConnected() ? "true" : "false") + "\"" +
              " lastDisconnectReason=\"" + u->GetLastDisconnectReason() + "\">";
     std::vector<std::string> list(u->GetAuthorizers());