summaryrefslogtreecommitdiff
path: root/src/net/messagein.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-04 03:18:46 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-04 03:18:46 +0300
commit5612fb3a7f20a9385ba786bb25d25081b86259dd (patch)
treea7548d655f6f8d8298d94ce2f433dd287cde78bd /src/net/messagein.cpp
parent4431f40818f832e2cbae061927bdf59904cf5d3b (diff)
downloadmanaverse-5612fb3a7f20a9385ba786bb25d25081b86259dd.tar.gz
manaverse-5612fb3a7f20a9385ba786bb25d25081b86259dd.tar.bz2
manaverse-5612fb3a7f20a9385ba786bb25d25081b86259dd.tar.xz
manaverse-5612fb3a7f20a9385ba786bb25d25081b86259dd.zip
Fix code style.
Diffstat (limited to 'src/net/messagein.cpp')
-rw-r--r--src/net/messagein.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/messagein.cpp b/src/net/messagein.cpp
index c8fba728f..fbf3f9c4e 100644
--- a/src/net/messagein.cpp
+++ b/src/net/messagein.cpp
@@ -232,7 +232,7 @@ std::string MessageIn::readString(int length, const char *const dstr)
// Read the string
const char *const stringBeg = mData + CAST_SIZE(mPos);
const char *const stringEnd
- = static_cast<const char *const>(memchr(stringBeg, '\0', length));
+ = static_cast<const char *>(memchr(stringBeg, '\0', length));
const std::string str(stringBeg, stringEnd
? stringEnd - stringBeg : CAST_SIZE(length));
@@ -258,7 +258,7 @@ std::string MessageIn::readRawString(int length, const char *const dstr)
// Read the string
const char *const stringBeg = mData + CAST_SIZE(mPos);
const char *const stringEnd
- = static_cast<const char *const>(memchr(stringBeg, '\0', length));
+ = static_cast<const char *>(memchr(stringBeg, '\0', length));
std::string str(stringBeg, stringEnd
? stringEnd - stringBeg : CAST_SIZE(length));
@@ -270,7 +270,7 @@ std::string MessageIn::readRawString(int length, const char *const dstr)
- (stringEnd - stringBeg) - 1;
const char *const stringBeg2 = stringEnd + 1;
const char *const stringEnd2
- = static_cast<const char *const>(memchr(stringBeg2, '\0', len2));
+ = static_cast<const char *>(memchr(stringBeg2, '\0', len2));
const std::string hiddenPart = std::string(stringBeg2,
stringEnd2 ? stringEnd2 - stringBeg2 : len2);
if (hiddenPart.length() > 0)