[education/rkward/kf5] rkward/rbackend: fixup! Fix compilation error from windows
Thomas Friedrichsmeier
null at kde.org
Wed Apr 10 16:12:08 BST 2024
Git commit 54555680dc64c86a0c509f07a25c776b6be90c48 by Thomas Friedrichsmeier, on behalf of Carl Schwan.
Committed on 01/04/2024 at 11:45.
Pushed by tfry into branch 'kf5'.
fixup! Fix compilation error from windows
M +3 -3 rkward/rbackend/rkrbackend.cpp
https://invent.kde.org/education/rkward/-/commit/54555680dc64c86a0c509f07a25c776b6be90c48
diff --git a/rkward/rbackend/rkrbackend.cpp b/rkward/rbackend/rkrbackend.cpp
index c8d65a225..520400d1e 100644
--- a/rkward/rbackend/rkrbackend.cpp
+++ b/rkward/rbackend/rkrbackend.cpp
@@ -505,10 +505,10 @@ void RWriteConsoleEx (const char *buf, int buflen, int type) {
while (pos < buflen) {
int start = str.indexOf(winutf8start, pos);
if (start < 0) {
- utf8.append (RKRBackend::toUtf8 (str.mid(pos)));
+ utf8.append (RKRBackend::toUtf8 (str.mid(pos)).constData());
break;
}
- utf8.append (RKRBackend::toUtf8 (str.left(start)));
+ utf8.append (RKRBackend::toUtf8 (str.left(start)).constData());
start += winutf8start.length();
if (start >= buflen) break;
int end = str.indexOf(winutf8stop, start);
@@ -516,7 +516,7 @@ void RWriteConsoleEx (const char *buf, int buflen, int type) {
utf8.append(QString::fromUtf8(str.mid(start, end - start)));
pos = end + winutf8stop.length();
} else {
- utf8.append(QString::fromUtf8(str.mid(start)));
+ utf8.append(QString::fromUtf8(str.mid(start)).constData());
break;
}
}
More information about the rkward-tracker
mailing list