kdeconnectd: Make QByteArray->const char* conversion explicit

With latest ECM settings, this gives a Qt6 error
This commit is contained in:
Alexander Lohnau 2023-07-21 12:22:47 +03:00
parent e957f8f90e
commit 87c9032ab9

View file

@ -112,9 +112,9 @@ static void detectPlatform(int argc, char **argv)
if (sessionType.isEmpty()) {
return;
}
if (qstrcmp(sessionType, "wayland") == 0) {
if (qstrcmp(sessionType.constData(), "wayland") == 0) {
qputenv("QT_QPA_PLATFORM", "wayland");
} else if (qstrcmp(sessionType, "x11") == 0) {
} else if (qstrcmp(sessionType.constData(), "x11") == 0) {
qputenv("QT_QPA_PLATFORM", "xcb");
}
}