summaryrefslogtreecommitdiff
path: root/src/gui/serverdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-26 00:01:56 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-26 00:01:56 +0300
commit803b6afd00b0e3574b40b866f21a0d3d01f6dc4d (patch)
tree8a55ef881f1eaac4d216b3f5d2c4605eb520070d /src/gui/serverdialog.cpp
parent8478d540748edccf36dc9bda5f0c3de0aa7bf763 (diff)
downloadManaVerse-803b6afd00b0e3574b40b866f21a0d3d01f6dc4d.tar.gz
ManaVerse-803b6afd00b0e3574b40b866f21a0d3d01f6dc4d.tar.bz2
ManaVerse-803b6afd00b0e3574b40b866f21a0d3d01f6dc4d.tar.xz
ManaVerse-803b6afd00b0e3574b40b866f21a0d3d01f6dc4d.zip
Improve string usage in other files.
Diffstat (limited to 'src/gui/serverdialog.cpp')
-rw-r--r--src/gui/serverdialog.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp
index 9e3372dca..6bb09d8e9 100644
--- a/src/gui/serverdialog.cpp
+++ b/src/gui/serverdialog.cpp
@@ -130,7 +130,7 @@ std::string ServersListModel::getElementAt(int elementIndex)
MutexLocker lock = mParent->lock();
const ServerInfo &server = mServers->at(elementIndex);
std::string myServer;
- myServer += server.hostname;
+ myServer.append(server.hostname);
// myServer += ":";
// myServer += toString(server.port);
return myServer;
@@ -543,8 +543,8 @@ void ServerDialog::downloadServerList()
}
mDownload = new Net::Download(this, listFile, &downloadUpdate);
- mDownload->setFile(mDir + "/" + branding.getStringValue(
- "onlineServerFile"));
+ mDownload->setFile(std::string(mDir).append("/").append(
+ branding.getStringValue("onlineServerFile")));
mDownload->start();
config.setValue("serverslistupdate", getDateString());
@@ -552,8 +552,8 @@ void ServerDialog::downloadServerList()
void ServerDialog::loadServers(const bool addNew)
{
- XML::Document doc(mDir + "/" + branding.getStringValue(
- "onlineServerFile"), false);
+ XML::Document doc(std::string(mDir).append("/").append(
+ branding.getStringValue("onlineServerFile")), false);
const XmlNodePtr rootNode = doc.rootNode();
if (!rootNode || !xmlNameEqual(rootNode, "serverlist"))