From 12389c8441c748996962412201af9e21d66f9e55 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 30 Apr 2014 19:53:58 +0300 Subject: Fix code style in utils. --- src/utils/base64.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/utils/base64.cpp') diff --git a/src/utils/base64.cpp b/src/utils/base64.cpp index bd20496b3..57bc68a7c 100644 --- a/src/utils/base64.cpp +++ b/src/utils/base64.cpp @@ -180,7 +180,8 @@ std::string encodeBase64String(std::string value) int sz = 0; const unsigned char *const str = reinterpret_cast( const_cast(value.c_str())); - unsigned char *const buf = php3_base64_encode(str, value.size(), &sz); + unsigned char *const buf = php3_base64_encode( + str, static_cast(value.size()), &sz); if (!buf) return std::string(); @@ -194,7 +195,8 @@ std::string decodeBase64String(std::string value) int sz = 0; const unsigned char *const str = reinterpret_cast( const_cast(value.c_str())); - unsigned char *const buf = php3_base64_decode(str, value.size(), &sz); + unsigned char *const buf = php3_base64_decode( + str, static_cast(value.size()), &sz); if (buf) value = std::string(reinterpret_cast(buf), sz); -- cgit v1.2.3-60-g2f50