OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcfd637
)
replace hardcoded value with enum in QDBusMetaObjectGenerator::parseProperties()
author
Ivailo Monev
<xakepa10@laimg.moc>
Thu, 9 Apr 2020 07:27:59 +0000
(07:27 +0000)
committer
Ivailo Monev
<xakepa10@laimg.moc>
Thu, 9 Apr 2020 07:27:59 +0000
(07:27 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/dbus/qdbusmetaobject.cpp
patch
|
blob
|
history
diff --git
a/src/dbus/qdbusmetaobject.cpp
b/src/dbus/qdbusmetaobject.cpp
index
01dba49
..
c51520b
100644
(file)
--- 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 <
0xff
)
+ else if (mp.type <
QVariant::Invalid
)
// encode the type in the flags
mp.flags |= mp.type << 24;