OSDN Git Service

Revert "replace hardcoded value with enum in QDBusMetaObjectGenerator::parseProperties()"
authorIvailo Monev <xakepa10@gmail.com>
Sat, 23 Jan 2021 21:18:34 +0000 (23:18 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Sat, 23 Jan 2021 21:18:34 +0000 (23:18 +0200)
This reverts commit e2ac229d74fd8fcba6bfdff73a6dbfc0a788f836.

src/dbus/qdbusmetaobject.cpp

index 9058ee5..5a9e6e0 100644 (file)
@@ -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;