From 87c9032ab9ba31e88930b4636f32d4778afa7d8b Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Fri, 21 Jul 2023 12:22:47 +0300 Subject: [PATCH] kdeconnectd: Make QByteArray->const char* conversion explicit With latest ECM settings, this gives a Qt6 error --- daemon/kdeconnectd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/kdeconnectd.cpp b/daemon/kdeconnectd.cpp index 97e33bf72..ad221f703 100644 --- a/daemon/kdeconnectd.cpp +++ b/daemon/kdeconnectd.cpp @@ -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"); } }