Fix build error: invalid user-defined conversion from ‘QByteArray’ to ‘const char*’

NO_CHANGELOG
This commit is contained in:
Méven Car 2021-11-24 10:44:31 +01:00 committed by Méven Car
parent 5c76528250
commit 4e424b1bd5

View file

@ -90,7 +90,7 @@ void qvariant2qobject(const QVariantMap& variant, T* object)
{ {
for ( QVariantMap::const_iterator iter = variant.begin(); iter != variant.end(); ++iter ) 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) { if (propertyIndex < 0) {
qCWarning(KDECONNECT_CORE) << "missing property" << object << iter.key(); qCWarning(KDECONNECT_CORE) << "missing property" << object << iter.key();
continue; continue;