diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-04 03:18:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-04 03:18:46 +0300 |
commit | 5612fb3a7f20a9385ba786bb25d25081b86259dd (patch) | |
tree | a7548d655f6f8d8298d94ce2f433dd287cde78bd /src/net | |
parent | 4431f40818f832e2cbae061927bdf59904cf5d3b (diff) | |
download | manaverse-5612fb3a7f20a9385ba786bb25d25081b86259dd.tar.gz manaverse-5612fb3a7f20a9385ba786bb25d25081b86259dd.tar.bz2 manaverse-5612fb3a7f20a9385ba786bb25d25081b86259dd.tar.xz manaverse-5612fb3a7f20a9385ba786bb25d25081b86259dd.zip |
Fix code style.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/download.cpp | 2 | ||||
-rw-r--r-- | src/net/ea/network.cpp | 2 | ||||
-rw-r--r-- | src/net/messagein.cpp | 6 | ||||
-rw-r--r-- | src/net/sdltcpnet.cpp | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/net/download.cpp b/src/net/download.cpp index 6a1f4cc83..5e3ffebf6 100644 --- a/src/net/download.cpp +++ b/src/net/download.cpp @@ -220,7 +220,7 @@ const char *Download::getError() const int Download::downloadProgress(void *clientp, double dltotal, double dlnow, double ultotal A_UNUSED, double ulnow A_UNUSED) { - Download *const d = reinterpret_cast<Download *const>(clientp); + Download *const d = reinterpret_cast<Download *>(clientp); if (!d) return -5; diff --git a/src/net/ea/network.cpp b/src/net/ea/network.cpp index db5c8e0eb..47a09ca97 100644 --- a/src/net/ea/network.cpp +++ b/src/net/ea/network.cpp @@ -49,7 +49,7 @@ const unsigned int BUFFER_LIMIT = 930000; int networkThread(void *data) { - Network *const network = static_cast<Network *const>(data); + Network *const network = static_cast<Network *>(data); if (!network || !network->realConnect()) return -1; 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) diff --git a/src/net/sdltcpnet.cpp b/src/net/sdltcpnet.cpp index d2cd51c64..182263ee5 100644 --- a/src/net/sdltcpnet.cpp +++ b/src/net/sdltcpnet.cpp @@ -107,7 +107,7 @@ TcpNet::Socket TcpNet::open(IPaddress *const ip) if (sock && ip) { const TCPsocketHack *const hack - = reinterpret_cast<const TCPsocketHack *const>(sock); + = reinterpret_cast<const TCPsocketHack *>(sock); // here we using some magic to compare TCPsocket and own padding // because actual struct TCPsocket not in headers if (hack) |