diff options
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/download.cpp | 2 | ||||
-rw-r--r-- | src/net/eathena/chathandler.cpp | 4 | ||||
-rw-r--r-- | src/net/tmwa/chathandler.cpp | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/net/download.cpp b/src/net/download.cpp index 209b6085e..9e22745d4 100644 --- a/src/net/download.cpp +++ b/src/net/download.cpp @@ -272,7 +272,7 @@ int Download::downloadThread(void *ptr) if (!d->mOptions.memoryWrite) outFilename = d->mFileName + ".part"; else - outFilename = ""; + outFilename.clear(); } while (!d->mUrlQueue.empty()) diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index 353a82b0e..6efbb7864 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -99,7 +99,7 @@ void ChatHandler::sendRaw(const std::string &args) const std::string str; MessageOut *outMsg = nullptr; - if (line == "") + if (line.empty()) return; size_t pos = line.find(" "); @@ -129,7 +129,7 @@ void ChatHandler::sendRaw(const std::string &args) const line = line.substr(pos + 1); pos = line.find(" "); } - if (line != "") + if (!line.empty()) processRaw(*outMsg, line); delete outMsg; } diff --git a/src/net/tmwa/chathandler.cpp b/src/net/tmwa/chathandler.cpp index 61a8054ba..7d22102fc 100644 --- a/src/net/tmwa/chathandler.cpp +++ b/src/net/tmwa/chathandler.cpp @@ -100,7 +100,7 @@ void ChatHandler::sendRaw(const std::string &args) const std::string str; MessageOut *outMsg = nullptr; - if (line == "") + if (line.empty()) return; size_t pos = line.find(" "); @@ -129,7 +129,7 @@ void ChatHandler::sendRaw(const std::string &args) const line = line.substr(pos + 1); pos = line.find(" "); } - if (line != "") + if (!line.empty()) processRaw(*outMsg, line); delete outMsg; } |