diff options
author | Robert Loehning <robert.loehning@qt.io> | 2020-04-28 09:57:09 +0200 |
---|---|---|
committer | Robert Loehning <robert.loehning@qt.io> | 2020-04-28 18:04:54 +0200 |
commit | 81e0e5990b1bfec4fcbe49bc37471223fa7a16f1 (patch) | |
tree | 237e2156e4a43ec739603a95fd2876231618cef3 | |
parent | 4b6fae67f3889837b37711b65ac21dfc8e8893c2 (diff) | |
download | qtlocation-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.cpp | 2 |
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()); |