From 190909eb1e537f9840b38eff47713281edc8a204 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Mon, 13 May 2019 12:34:52 +0200 Subject: Compile fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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()) { Change-Id: I67e4abd664c19bf3560023d9bd58127a6c97aa58 Reviewed-by: Paolo Angelelli --- src/location/declarativeplaces/qdeclarativesearchmodelbase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); else if (searchArea.userType() == qMetaTypeId()) s = searchArea.value(); - else if (searchArea.type() == qMetaTypeId()) { + else if (int(searchArea.type()) == qMetaTypeId()) { route = searchArea.value(); if (!route) return; -- cgit v1.2.3