summaryrefslogtreecommitdiff
path: root/src/gui/windows/serverdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-05 02:20:12 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-05 02:20:12 +0300
commit54fd7526e6a1d2d161fda10bccd609ec078b8fa9 (patch)
treeb2ef7a31891a0351f1053f6804a8abe4ff1ea895 /src/gui/windows/serverdialog.cpp
parentbc4957b24e6939f4e681e9412f9bbdd483a6bc35 (diff)
downloadmanaplus-54fd7526e6a1d2d161fda10bccd609ec078b8fa9.tar.gz
manaplus-54fd7526e6a1d2d161fda10bccd609ec078b8fa9.tar.bz2
manaplus-54fd7526e6a1d2d161fda10bccd609ec078b8fa9.tar.xz
manaplus-54fd7526e6a1d2d161fda10bccd609ec078b8fa9.zip
Add fast versions for function toString for different types.
Diffstat (limited to 'src/gui/windows/serverdialog.cpp')
-rw-r--r--src/gui/windows/serverdialog.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/windows/serverdialog.cpp b/src/gui/windows/serverdialog.cpp
index 6290724e9..684ff448a 100644
--- a/src/gui/windows/serverdialog.cpp
+++ b/src/gui/windows/serverdialog.cpp
@@ -686,10 +686,10 @@ void ServerDialog::saveCustomServers(const ServerInfo &currentServer,
("MostUsedServerOnlineList" + num);
const std::string persistentIpKey("persistentIp" + num);
- config.setValue(nameKey, toString(server.name));
- config.setValue(descKey, toString(server.description));
- config.setValue(onlineListUrlKey, toString(server.onlineListUrl));
- config.setValue(hostKey, toString(server.hostname));
+ config.setValue(nameKey, server.name);
+ config.setValue(descKey, server.description);
+ config.setValue(onlineListUrlKey, server.onlineListUrl);
+ config.setValue(hostKey, server.hostname);
config.setValue(typeKey, serverTypeToString(server.type));
config.setValue(portKey, toString(server.port));
config.setValue(persistentIpKey, server.persistentIp);