- answer = GetOpenTag() + "<version value=\"" + SERVER_VERSION + "\"/>" +
- "<tariff_num value=\"" + x2str(tariffs.Count()) + "\"/>" +
- "<tariff value=\"2\"/>" +
- "<user_num value=\"" + x2str(users.Count()) + "\"/>" +
- "<uname value=\"" + name + "\"/>" +
- "<dir_num value=\"" + x2str(DIR_NUM) + "\"/>" +
- "<day_fee value=\"" + x2str(settings.GetDayFee()) + "\"/>";
+ m_answer = std::string("<ServerInfo><version value=\"") + SERVER_VERSION + "\"/>" +
+ "<tariff_num value=\"" + std::to_string(m_tariffs.Count()) + "\"/>" +
+ "<tariff value=\"2\"/>" +
+ "<user_num value=\"" + std::to_string(m_users.Count()) + "\"/>" +
+ "<uname value=\"" + name + "\"/>" +
+ "<dir_num value=\"" + std::to_string(DIR_NUM) + "\"/>" +
+ "<day_fee value=\"" + std::to_string(m_settings.GetDayFee()) + "\"/>";