kcoreaddons: Fix build with Qt 5.15

%ci:no-build
This commit is contained in:
Tee KOBAYASHI 2022-03-24 06:59:49 +09:00 committed by Yaksh Bariya
parent 4262583060
commit e08e0dd254
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581

View File

@ -0,0 +1,11 @@
--- a/src/lib/randomness/krandom.cpp
+++ b/src/lib/randomness/krandom.cpp
@@ -62,7 +62,7 @@
if (r > 90) {
r += 6;
}
- str[i++] = char(r);
+ str[i++] = QLatin1Char(char(r));
// so what if I work backwards?
}
return str;