summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@qt.io>2020-04-28 09:57:09 +0200
committerRobert Loehning <robert.loehning@qt.io>2020-04-28 18:04:54 +0200
commit81e0e5990b1bfec4fcbe49bc37471223fa7a16f1 (patch)
tree237e2156e4a43ec739603a95fd2876231618cef3
parent4b6fae67f3889837b37711b65ac21dfc8e8893c2 (diff)
downloadqtlocation-81e0e5990b1bfec4fcbe49bc37471223fa7a16f1.tar.gz
Fix developer-build with clang 7
comparison of two values with different enumeration types in switch statement ('QVariant::Type' and 'QMetaType::Type') Change-Id: I40bff89a773d4c312825133fd8c00e32e469953a Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r--src/location/declarativemaps/qdeclarativegeomap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/location/declarativemaps/qdeclarativegeomap.cpp b/src/location/declarativemaps/qdeclarativegeomap.cpp
index 875b8e47..9fa50794 100644
--- a/src/location/declarativemaps/qdeclarativegeomap.cpp
+++ b/src/location/declarativemaps/qdeclarativegeomap.cpp
@@ -1628,7 +1628,7 @@ void QDeclarativeGeoMap::clearData()
void QDeclarativeGeoMap::fitViewportToGeoShape(const QGeoShape &shape, QVariant margins)
{
QMargins m(10, 10, 10, 10); // lets defaults to 10 if margins is invalid
- switch (margins.type()) {
+ switch (static_cast<QMetaType::Type>(margins.type())) {
case QMetaType::Int:
case QMetaType::Double: {
const int value = int(margins.toDouble());