summaryrefslogtreecommitdiff
path: root/src/net/ea/network.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-26 13:35:24 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-26 13:35:24 +0300
commit5190fe2cdac7c259d96619e4686f8543bdc96af4 (patch)
tree3a49895b4371fcd58a2446c0b3b0128ca1933568 /src/net/ea/network.cpp
parentd4febba47388979b26cd4680cb8a6f20e548e399 (diff)
downloadmanaverse-5190fe2cdac7c259d96619e4686f8543bdc96af4.tar.gz
manaverse-5190fe2cdac7c259d96619e4686f8543bdc96af4.tar.bz2
manaverse-5190fe2cdac7c259d96619e4686f8543bdc96af4.tar.xz
manaverse-5190fe2cdac7c259d96619e4686f8543bdc96af4.zip
Improve string usage in other files.
Diffstat (limited to 'src/net/ea/network.cpp')
-rw-r--r--src/net/ea/network.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/ea/network.cpp b/src/net/ea/network.cpp
index af2c1837d..b0a2802bd 100644
--- a/src/net/ea/network.cpp
+++ b/src/net/ea/network.cpp
@@ -150,7 +150,7 @@ void Network::flush()
SDL_mutexP(mMutex);
ret = SDLNet_TCP_Send(mSocket, mOutBuffer, mOutSize);
- DEBUGLOG("Send " + toString(mOutSize) + " bytes");
+ DEBUGLOG(std::string("Send ").append(toString(mOutSize)).append(" bytes"));
if (ret < static_cast<int>(mOutSize))
{
setError("Error in SDLNet_TCP_Send(): " +
@@ -191,8 +191,8 @@ bool Network::realConnect()
if (SDLNet_ResolveHost(&ipAddress, mServer.hostname.c_str(),
mServer.port) == -1)
{
- std::string errorMessage = _("Unable to resolve host \"") +
- mServer.hostname + "\"";
+ std::string errorMessage = std::string(_("Unable to resolve host \""))
+ .append(mServer.hostname).append("\"");
setError(errorMessage);
logger->log("SDLNet_ResolveHost: %s", errorMessage.c_str());
return false;