From: Ivailo Monev Date: Sat, 23 Jan 2021 21:18:34 +0000 (+0200) Subject: Revert "replace hardcoded value with enum in QDBusMetaObjectGenerator::parseProperties()" X-Git-Tag: 4.12.0~2713 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=b56bc7716051aa037e9a138d5f19d905c1cfcc51;p=kde%2FKatie.git Revert "replace hardcoded value with enum in QDBusMetaObjectGenerator::parseProperties()" This reverts commit e2ac229d74fd8fcba6bfdff73a6dbfc0a788f836. --- diff --git a/src/dbus/qdbusmetaobject.cpp b/src/dbus/qdbusmetaobject.cpp index 9058ee56c..5a9e6e034 100644 --- a/src/dbus/qdbusmetaobject.cpp +++ b/src/dbus/qdbusmetaobject.cpp @@ -336,7 +336,7 @@ void QDBusMetaObjectGenerator::parseProperties() if (mp.typeName == "QDBusVariant") mp.flags |= 0xff << 24; - else if (mp.type < QVariant::Invalid) + else if (mp.type < 0xff) // encode the type in the flags mp.flags |= mp.type << 24;