]> git.stg.codes - stg.git/blobdiff - sgconf/config.h
Remove x2str/unsigned2str in favor of std::to_string.
[stg.git] / sgconf / config.h
index 271837cc9d341309d60f8f9da228e88a215e4dbf..bb4f360a4bebfec29c6b357ec6a4e6657ac83707 100644 (file)
@@ -70,11 +70,11 @@ struct CONFIG
     if (!server.empty())
         res += "server: '" + server.data() + "'\n";
     if (!port.empty())
-        res += "port: " + x2str(port.data()) + "\n";
+        res += "port: " + std::to_string(port.data()) + "\n";
     if (!localAddress.empty())
         res += "local address: '" + localAddress.data() + "'\n";
     if (!localPort.empty())
-        res += "local port: " + x2str(localPort.data()) + "\n";
+        res += "local port: " + std::to_string(localPort.data()) + "\n";
     if (!userName.empty())
         res += "userName: '" + userName.data() + "'\n";
     if (!userPass.empty())