Fix build error: invalid user-defined conversion from ‘QByteArray’ to ‘const char*’
NO_CHANGELOG
This commit is contained in:
parent
5c76528250
commit
4e424b1bd5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue