diff options
Diffstat (limited to 'Swiften/StringCodecs/Base64.cpp')
-rw-r--r-- | Swiften/StringCodecs/Base64.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Swiften/StringCodecs/Base64.cpp b/Swiften/StringCodecs/Base64.cpp index ec6f960..e1d70a0 100644 --- a/Swiften/StringCodecs/Base64.cpp +++ b/Swiften/StringCodecs/Base64.cpp @@ -71,9 +71,6 @@ SafeByteArray Base64::encode(const SafeByteArray& s) { } -ByteArray Base64::decode(const std::string& input1) { +ByteArray Base64::decode(const std::string& input) { ByteArray result; - std::string input(input1); - input.erase(std::remove(input.begin(), input.end(), '\n'), input.end()); - input.erase(std::remove(input.begin(), input.end(), '\r'), input.end()); if (input.size() % 4) { |