Commit 41ff82ff authored by Volker Krause's avatar Volker Krause
Browse files

Make int to QChar conversion explicit

This doesn't work implicitly anymore with Qt6.
parent 198d7b48
......@@ -630,7 +630,7 @@ const QString KIMAP::decodeRFC2231String(const QString &str)
char ch2;
p = 0;
while (p < st.length()) {
if (st.at(p) == 37) {
if (st.at(p) == QLatin1Char(37)) {
ch = st.at(p + 1).toLatin1() - 48;
if (ch > 16) {
ch -= 7;
......@@ -639,7 +639,7 @@ const QString KIMAP::decodeRFC2231String(const QString &str)
if (ch2 > 16) {
ch2 -= 7;
}
st.replace(p, 1, ch * 16 + ch2);
st.replace(p, 1, QChar(ch * 16 + ch2));
st.remove(p + 1, 2);
}
p++;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment