From 18cba14c0f80f6ae7db883ce4d6abbf24728f07d Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Thu, 16 Apr 2009 22:32:39 +0200 Subject: Some more cleanups Nothing in particular worth mentioning. --- src/gui/chat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/chat.cpp') diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp index 9580ffe1..7faf9bda 100644 --- a/src/gui/chat.cpp +++ b/src/gui/chat.cpp @@ -414,7 +414,7 @@ void ChatWindow::setRecordingFile(const std::string &msg) void ChatWindow::whisper(const std::string &nick, std::string mes, bool own) { - if (mes.length() == 0) + if (mes.empty()) return; std::string playerName = player_node->getName(); -- cgit v1.2.3-60-g2f50