From 2a7d627273069c7c56ff04842ec4f58b42730c6b Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Thu, 2 Oct 2014 15:32:11 +0200 Subject: [PATCH] make quassel compile with qca enabled on qt5 --- src/core/cipher.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/cipher.cpp b/src/core/cipher.cpp index 7d1fe46a..a8232a3c 100644 --- a/src/core/cipher.cpp +++ b/src/core/cipher.cpp @@ -429,13 +429,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; } } -- 2.20.1