summaryrefslogtreecommitdiff
path: root/src/plugins/geoservices/esri/placemanagerengine_esri.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2022-06-10 20:38:50 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2022-06-16 16:08:59 +0200
commita0ed5f9f9c8acf1b4b631b69774ac67ac37739bc (patch)
tree83afaa8ebeb5abd6571b2842f7a68399e652b508 /src/plugins/geoservices/esri/placemanagerengine_esri.cpp
parent5164413d711409c64f153a2049d587580b15fe5e (diff)
downloadqtlocation-a0ed5f9f9c8acf1b4b631b69774ac67ac37739bc.tar.gz
Silence build warnings, fix build errors
Replace various deprecated APIs with their supported Qt 6 versions. Most notably, replace QScopedPointer with std::unique_ptr, as the code frequently use deprecated QScopedPointer::swap. Change-Id: If9cb0be89423fd310073709eb390401d74240153 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/plugins/geoservices/esri/placemanagerengine_esri.cpp')
-rw-r--r--src/plugins/geoservices/esri/placemanagerengine_esri.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/geoservices/esri/placemanagerengine_esri.cpp b/src/plugins/geoservices/esri/placemanagerengine_esri.cpp
index 3a6a267b..4152a268 100644
--- a/src/plugins/geoservices/esri/placemanagerengine_esri.cpp
+++ b/src/plugins/geoservices/esri/placemanagerengine_esri.cpp
@@ -188,7 +188,7 @@ QPlaceReply *PlaceManagerEngineEsri::initializeCategories()
void PlaceManagerEngineEsri::parseCategories(const QJsonArray &jsonArray, const QString &parentCategoryId)
{
- for (const QJsonValue &jsonValue : jsonArray)
+ for (const QJsonValueConstRef jsonValue : jsonArray)
{
if (!jsonValue.isObject())
continue;
@@ -288,7 +288,7 @@ QString PlaceManagerEngineEsri::localizedName(const QJsonObject &jsonObject)
void PlaceManagerEngineEsri::parseCandidateFields(const QJsonArray &jsonArray)
{
- for (const QJsonValue &jsonValue : jsonArray)
+ for (const QJsonValueConstRef jsonValue : jsonArray)
{
if (!jsonValue.isObject())
continue;
@@ -304,7 +304,7 @@ void PlaceManagerEngineEsri::parseCandidateFields(const QJsonArray &jsonArray)
void PlaceManagerEngineEsri::parseCountries(const QJsonArray &jsonArray)
{
- for (const QJsonValue &jsonValue : jsonArray)
+ for (const QJsonValueConstRef jsonValue : jsonArray)
{
if (!jsonValue.isObject())
continue;