projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d6888a6
)
make quassel compile with qca enabled on qt5
96/head
author
Patrick von Reth
<vonreth@kde.org>
Thu, 2 Oct 2014 13:32:11 +0000
(15:32 +0200)
committer
Patrick von Reth
<vonreth@kde.org>
Thu, 2 Oct 2014 13:32:11 +0000
(15:32 +0200)
src/core/cipher.cpp
patch
|
blob
|
history
diff --git
a/src/core/cipher.cpp
b/src/core/cipher.cpp
index
7cc75d0
..
3f299f4
100644
(file)
--- 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++) {
right += v;
for (int i = 0; i < 6; i++) {
- encoded.append(base64.at(right & 0x3F).to
Ascii
());
+ encoded.append(base64.at(right & 0x3F).to
Latin1
());
right = right >> 6;
}
right = right >> 6;
}
- //TODO make sure the .to
ascii
doesn't break anything
+ //TODO make sure the .to
Latin1
doesn't break anything
for (int i = 0; i < 6; i++) {
for (int i = 0; i < 6; i++) {
- encoded.append(base64.at(left & 0x3F).to
Ascii
());
+ encoded.append(base64.at(left & 0x3F).to
Latin1
());
left = left >> 6;
}
}
left = left >> 6;
}
}