From 54fd7526e6a1d2d161fda10bccd609ec078b8fa9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 5 Jun 2015 02:20:12 +0300 Subject: Add fast versions for function toString for different types. --- src/gui/windows/serverdialog.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui') 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 ¤tServer, ("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); -- cgit v1.2.3-70-g09d2