From 4e424b1bd5679ef978d681e602f07d48e747bafe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9ven=20Car?= Date: Wed, 24 Nov 2021 10:44:31 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20build=20error:=20invalid=20user-defined?= =?UTF-8?q?=20conversion=20from=20=E2=80=98QByteArray=E2=80=99=20to=20?= =?UTF-8?q?=E2=80=98const=20char*=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NO_CHANGELOG --- core/networkpacket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/networkpacket.cpp b/core/networkpacket.cpp index 7a91d18b8..49f223c67 100644 --- a/core/networkpacket.cpp +++ b/core/networkpacket.cpp @@ -90,7 +90,7 @@ void qvariant2qobject(const QVariantMap& variant, T* object) { for ( QVariantMap::const_iterator iter = variant.begin(); iter != variant.end(); ++iter ) { - const int propertyIndex = T::staticMetaObject.indexOfProperty(iter.key().toLatin1()); + const int propertyIndex = T::staticMetaObject.indexOfProperty(iter.key().toLatin1().data()); if (propertyIndex < 0) { qCWarning(KDECONNECT_CORE) << "missing property" << object << iter.key(); continue;