diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2019-05-13 12:34:52 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2019-05-13 11:32:31 +0000 |
commit | 190909eb1e537f9840b38eff47713281edc8a204 (patch) | |
tree | 36057c8085c2fad9597b1ff0c8a3f906031540e0 /src | |
parent | ca339bc55d6fc617c63e723c43150445fc8ac050 (diff) | |
download | qtlocation-190909eb1e537f9840b38eff47713281edc8a204.tar.gz |
Compile fix
It fixes the following issue:
error: comparison of integer expressions of different signedness:
‘unsigned int’ and ‘int’ [-Werror=sign-compare]
115 | else if (searchArea.type() == qMetaTypeId<QObject *>()) {
Change-Id: I67e4abd664c19bf3560023d9bd58127a6c97aa58
Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/location/declarativeplaces/qdeclarativesearchmodelbase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/location/declarativeplaces/qdeclarativesearchmodelbase.cpp b/src/location/declarativeplaces/qdeclarativesearchmodelbase.cpp index 0d456f74..67fdc49e 100644 --- a/src/location/declarativeplaces/qdeclarativesearchmodelbase.cpp +++ b/src/location/declarativeplaces/qdeclarativesearchmodelbase.cpp @@ -112,7 +112,7 @@ void QDeclarativeSearchModelBase::setSearchArea(const QVariant &searchArea) s = searchArea.value<QGeoCircle>(); else if (searchArea.userType() == qMetaTypeId<QGeoShape>()) s = searchArea.value<QGeoShape>(); - else if (searchArea.type() == qMetaTypeId<QObject *>()) { + else if (int(searchArea.type()) == qMetaTypeId<QObject *>()) { route = searchArea.value<QDeclarativeGeoRoute *>(); if (!route) return; |