summaryrefslogtreecommitdiff
path: root/src/chat.cpp
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2016-03-19 12:08:24 -0400
committerShadowNinja <shadowninja@minetest.net>2016-03-19 21:27:57 -0400
commit93887043d9443ba6627fea68921994d0f1896517 (patch)
tree7199a98377b19afc01517ab795bc4d6dfa073130 /src/chat.cpp
parenteb7db21d50f866d1e847d7556f83995294a7e54f (diff)
downloadminetest-93887043d9443ba6627fea68921994d0f1896517.tar.gz
minetest-93887043d9443ba6627fea68921994d0f1896517.tar.bz2
minetest-93887043d9443ba6627fea68921994d0f1896517.zip
Clean up Strfnd
Changes: * Fix indentation. * Pass strings by const reference. * Merge Strfnd and WStrfnd into one class instead of copying them. * Remove trailing spaces. * Fix variable names. * Move to util. * Other miscellaneous style fixes.
Diffstat (limited to 'src/chat.cpp')
-rw-r--r--src/chat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chat.cpp b/src/chat.cpp
index 495e3450b..7a5196ed5 100644
--- a/src/chat.cpp
+++ b/src/chat.cpp
@@ -19,7 +19,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "chat.h"
#include "debug.h"
-#include "strfnd.h"
+#include "util/strfnd.h"
#include <cctype>
#include <sstream>
#include "util/string.h"
@@ -684,7 +684,7 @@ void ChatBackend::addMessage(std::wstring name, std::wstring text)
// Note: A message may consist of multiple lines, for example the MOTD.
WStrfnd fnd(text);
- while (!fnd.atend())
+ while (!fnd.at_end())
{
std::wstring line = fnd.next(L"\n");
m_console_buffer.addLine(name, line);