Skip to content

Commit

Permalink
chore: reduce warnings
Browse files Browse the repository at this point in the history
 warning: comparison of different enumeration types in switch statement
 ('QVariant::Type' and 'QMetaType::Type')
  • Loading branch information
kegechen committed Nov 7, 2023
1 parent cf5dc84 commit 18c5979
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/dnativesettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,12 @@ void DNativeSettings::init(const QMetaObject *metaObject)
QMetaPropertyBuilder op;

switch (mp.type()) {
case QMetaType::QByteArray:
case QMetaType::QString:
case QMetaType::QColor:
case QMetaType::Int:
case QMetaType::Double:
case QMetaType::Bool:
case QVariant::ByteArray:
case QVariant::String:
case QVariant::Color:
case QVariant::Int:
case QVariant::Double:
case QVariant::Bool:
op = ob.addProperty(mp);
break;
default:
Expand Down

0 comments on commit 18c5979

Please sign in to comment.