Commit 1fdbf2c6 authored by Don Gagne's avatar Don Gagne

Fix -Wenum-compare

parent 1e0026e8
......@@ -275,7 +275,8 @@ void UASQuickView::valueChanged(const int uasId, const QString& name, const QStr
Q_UNUSED(unit);
bool ok;
double value = variant.toDouble(&ok);
if(!ok || variant.type() == QMetaType::QString || variant.type() == QMetaType::QByteArray)
QMetaType metaType = static_cast<QMetaType::Type>(variant.type());
if(!ok || metaType == QMetaType::QString || metaType == QMetaType::QByteArray)
return;
if (!uasPropertyValueMap.contains(name))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment