summaryrefslogtreecommitdiffstats
path: root/src/net/messagein.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-26 17:05:18 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-26 17:18:21 +0200
commit43e99491a76bb85faf60c004e84b6c2b14cf41e7 (patch)
tree4aba689b76138118b4da043425fb3e8576db418c /src/net/messagein.cpp
parente726c34606f85347e70a0deb6b180db03b6d0c25 (diff)
downloadmanaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.tar.gz
manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.tar.xz
manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.zip
Standardize on the position of the const keyword
Same as for the client.
Diffstat (limited to 'src/net/messagein.cpp')
-rw-r--r--src/net/messagein.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/messagein.cpp b/src/net/messagein.cpp
index 714def5..767ed4c 100644
--- a/src/net/messagein.cpp
+++ b/src/net/messagein.cpp
@@ -89,8 +89,8 @@ std::string MessageIn::readString(int length)
}
// Read the string
- char const *stringBeg = mData + mPos;
- char const *stringEnd = (char const *)memchr(stringBeg, '\0', length);
+ const char *stringBeg = mData + mPos;
+ const char *stringEnd = (const char *)memchr(stringBeg, '\0', length);
std::string readString(stringBeg,
stringEnd ? stringEnd - stringBeg : length);
mPos += length;