diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-01-18 01:04:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-01-18 01:04:46 +0300 |
commit | 973b63d58cfeffc7168c00fa25611644bf09756d (patch) | |
tree | 27010f77994caa8de11f3811c90782b8dcffca0d /src/utils/base64.cpp | |
parent | 520b6bbc44cf86dd0a761379e7002d850c7c0079 (diff) | |
download | manaplus-973b63d58cfeffc7168c00fa25611644bf09756d.tar.gz manaplus-973b63d58cfeffc7168c00fa25611644bf09756d.tar.bz2 manaplus-973b63d58cfeffc7168c00fa25611644bf09756d.tar.xz manaplus-973b63d58cfeffc7168c00fa25611644bf09756d.zip |
fix code style.
Diffstat (limited to 'src/utils/base64.cpp')
-rw-r--r-- | src/utils/base64.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/base64.cpp b/src/utils/base64.cpp index f887a9e1b..bd20496b3 100644 --- a/src/utils/base64.cpp +++ b/src/utils/base64.cpp @@ -178,7 +178,7 @@ unsigned char *php3_base64_decode(const unsigned char *restrict const string, std::string encodeBase64String(std::string value) { int sz = 0; - unsigned char *str = reinterpret_cast<unsigned char*>( + const unsigned char *const str = reinterpret_cast<unsigned char*>( const_cast<char*>(value.c_str())); unsigned char *const buf = php3_base64_encode(str, value.size(), &sz); if (!buf) @@ -192,7 +192,7 @@ std::string encodeBase64String(std::string value) std::string decodeBase64String(std::string value) { int sz = 0; - unsigned char *str = reinterpret_cast<unsigned char*>( + const unsigned char *const str = reinterpret_cast<unsigned char*>( const_cast<char*>(value.c_str())); unsigned char *const buf = php3_base64_decode(str, value.size(), &sz); |