X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcipher.cpp;fp=src%2Fcore%2Fcipher.cpp;h=3f299f40c04fcd24e6071f89f6cb7a60bcdc073c;hp=7cc75d0a5774cab7e972e0ceaa970ecd0edfe77b;hb=310dc3ae20541ec5364a9e70a17f3322adb5723f;hpb=d6888a62baaa3cbb5fcf461aafa1fbf5197c4f49 diff --git a/src/core/cipher.cpp b/src/core/cipher.cpp index 7cc75d0a..3f299f40 100644 --- a/src/core/cipher.cpp +++ b/src/core/cipher.cpp @@ -420,13 +420,13 @@ QByteArray Cipher::byteToB64(QByteArray text) right += v; for (int i = 0; i < 6; i++) { - encoded.append(base64.at(right & 0x3F).toAscii()); + encoded.append(base64.at(right & 0x3F).toLatin1()); right = right >> 6; } - //TODO make sure the .toascii doesn't break anything + //TODO make sure the .toLatin1 doesn't break anything for (int i = 0; i < 6; i++) { - encoded.append(base64.at(left & 0x3F).toAscii()); + encoded.append(base64.at(left & 0x3F).toLatin1()); left = left >> 6; } }