diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-06-10 20:38:50 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-06-16 16:08:59 +0200 |
commit | a0ed5f9f9c8acf1b4b631b69774ac67ac37739bc (patch) | |
tree | 83afaa8ebeb5abd6571b2842f7a68399e652b508 /src/plugins/geoservices/mapbox/qgeoroutingmanagerenginemapbox.cpp | |
parent | 5164413d711409c64f153a2049d587580b15fe5e (diff) |
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/mapbox/qgeoroutingmanagerenginemapbox.cpp')
-rw-r--r-- | src/plugins/geoservices/mapbox/qgeoroutingmanagerenginemapbox.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/geoservices/mapbox/qgeoroutingmanagerenginemapbox.cpp b/src/plugins/geoservices/mapbox/qgeoroutingmanagerenginemapbox.cpp index 08a3b5a6..78753a80 100644 --- a/src/plugins/geoservices/mapbox/qgeoroutingmanagerenginemapbox.cpp +++ b/src/plugins/geoservices/mapbox/qgeoroutingmanagerenginemapbox.cpp @@ -104,7 +104,7 @@ static QVariantMap parseMapboxVoiceInstruction(const QJsonObject &voiceInstructi static QVariantList parseMapboxVoiceInstructions(const QJsonArray &voiceInstructions) { QVariantList list; - for (const QJsonValue &voiceInstructionValue : voiceInstructions) { + for (const QJsonValueConstRef voiceInstructionValue : voiceInstructions) { if (voiceInstructionValue.isObject()) list << parseMapboxVoiceInstruction(voiceInstructionValue.toObject()); } @@ -133,7 +133,7 @@ static QVariantMap parseMapboxBannerComponent(const QJsonObject &bannerComponent static QVariantList parseMapboxBannerComponents(const QJsonArray &bannerComponents) { QVariantList list; - for (const QJsonValue &bannerComponentValue : bannerComponents) { + for (const QJsonValueConstRef bannerComponentValue : bannerComponents) { if (bannerComponentValue.isObject()) list << parseMapboxBannerComponent(bannerComponentValue.toObject()); } @@ -187,7 +187,7 @@ static QVariantMap parseMapboxBannerInstruction(const QJsonObject &bannerInstruc static QVariantList parseMapboxBannerInstructions(const QJsonArray &bannerInstructions) { QVariantList list; - for (const QJsonValue &bannerInstructionValue : bannerInstructions) { + for (const QJsonValueConstRef bannerInstructionValue : bannerInstructions) { if (bannerInstructionValue.isObject()) list << parseMapboxBannerInstruction(bannerInstructionValue.toObject()); } |