From 1d96a615b5d1578912ec2e95c03dee6781cb3396 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Tue, 7 Jan 2014 16:53:40 +0000 Subject: Fixed favicons --- src/StringUtils.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/StringUtils.cpp') diff --git a/src/StringUtils.cpp b/src/StringUtils.cpp index e6deb0705..5d16616c5 100644 --- a/src/StringUtils.cpp +++ b/src/StringUtils.cpp @@ -759,7 +759,8 @@ AString Base64Decode(const AString & a_Base64String) } } res.resize(o >> 3); - return res;} + return res; +} @@ -774,7 +775,7 @@ AString Base64Encode(const AString & a_Input) 'w','x','y','z','0','1','2','3','4','5','6','7','8','9','+','/' }; - std::string output; + AString output; output.resize(((a_Input.size() + 2) / 3) * 4); size_t output_index = 0; @@ -804,7 +805,7 @@ AString Base64Encode(const AString & a_Input) output[output_index++] = '='; } - assert(output_index == output.size()); + ASSERT(output_index == output.size()); return output; } -- cgit v1.2.3