aboutsummaryrefslogtreecommitdiffstats
path: root/src/webchannel/qmetaobjectpublisher.cpp
diff options
context:
space:
mode:
authorJüri Valdmann <juri.valdmann@qt.io>2020-09-08 10:04:35 +0200
committerJüri Valdmann <juri.valdmann@qt.io>2020-09-09 13:05:51 +0200
commitdf1e1400b8b46909ac1cfd3f9245d1d5ed43fbb7 (patch)
treeb941c36c983455e3209c0ff8e925619f41fd4be6 /src/webchannel/qmetaobjectpublisher.cpp
parenta8c2450ac431f5da69c69c83e3cf0e5d399a6c99 (diff)
Fix mismatched enum warnings in QMetaObjectPublisher::unwrapVariant
This method is switching on the enum QVariant::Type using values from the enum QMetaType::Type and the compiler thinks this is not very nice. The warning is not serious since QVariant::Type is defined in terms of QMetaType::Type. Change-Id: Iaff7fe1ea702c6dfc77a008283a6f07cedb2729f Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
Diffstat (limited to 'src/webchannel/qmetaobjectpublisher.cpp')
-rw-r--r--src/webchannel/qmetaobjectpublisher.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webchannel/qmetaobjectpublisher.cpp b/src/webchannel/qmetaobjectpublisher.cpp
index ded5c30..b4a7cce 100644
--- a/src/webchannel/qmetaobjectpublisher.cpp
+++ b/src/webchannel/qmetaobjectpublisher.cpp
@@ -640,9 +640,9 @@ QVariant QMetaObjectPublisher::unwrapVariant(const QVariant &value) const
{
switch (value.type())
{
- case QMetaType::QVariantList:
+ case QVariant::List:
return unwrapList(value.toList());
- case QMetaType::QVariantMap:
+ case QVariant::Map:
return unwrapMap(value.toMap());
default:
break;