]> git.stg.codes - stg.git/blobdiff - stargazer/plugins/configuration/sgconfig/parser_services.cpp
GCC version, warnings.
[stg.git] / stargazer / plugins / configuration / sgconfig / parser_services.cpp
index a9599d54953a2bfdd5d56121be28e191a53fb280..b8a0977576f48d77577a675414ec01d750800c86 100644 (file)
@@ -53,8 +53,8 @@ void GET_SERVICES::CreateAnswer()
     {
         m_answer += "<Service name=\"" + conf.name +
                     "\" comment=\"" + Encode12str(conf.comment) +
-                    "\" cost=\"" + x2str(conf.cost) +
-                    "\" payDay=\"" + x2str(conf.payDay) + "\"/>";
+                    "\" cost=\"" + std::to_string(conf.cost) +
+                    "\" payDay=\"" + std::to_string(conf.payDay) + "\"/>";
     }
     m_services.CloseSearch(h);
     m_answer += "</Services>";
@@ -86,8 +86,8 @@ void GET_SERVICE::CreateAnswer()
     else
         m_answer += "<" + m_tag + " name=\"" + conf.name +
                     "\" comment=\"" + Encode12str(conf.comment) +
-                    "\" cost=\"" + x2str(conf.cost) +
-                    "\" payDay=\"" + x2str(conf.payDay) + "\"/>";
+                    "\" cost=\"" + std::to_string(conf.cost) +
+                    "\" payDay=\"" + std::to_string(conf.payDay) + "\"/>";
 }
 
 int ADD_SERVICE::Start(void *, const char * el, const char ** attr)