summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2020-05-02 16:07:34 -0700
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-05-20 14:09:31 +0200
commitcd7b64a59450069815ded66dca5f407a20cbb6ed (patch)
treef9de2bf11a1035cb52855fa5ca65d52e676aeecd
parent7b696b6e399cea7cde8bf973370f23c324aff6a8 (diff)
downloadqtlocation-cd7b64a59450069815ded66dca5f407a20cbb6ed.tar.gz
Fix Clang 10 warnings about deprecated copy constructors
qgeocodereplyosm.cpp:115:21: error: loop variable 'k' of type 'const QString' creates a copy from type 'const QString' [-Werror,-Wrange-loop- construct] Task-number: QTBUG-83666 Change-Id: I99ab0f318b1c43b89888fffd160b4a12bee11723 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 8b0c9024b1eb9b6a4ad2e440d6e7856ca3a09e80) Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
-rw-r--r--src/plugins/geoservices/osm/qgeocodereplyosm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/geoservices/osm/qgeocodereplyosm.cpp b/src/plugins/geoservices/osm/qgeocodereplyosm.cpp
index e309c87f..b1335a70 100644
--- a/src/plugins/geoservices/osm/qgeocodereplyosm.cpp
+++ b/src/plugins/geoservices/osm/qgeocodereplyosm.cpp
@@ -112,7 +112,7 @@ static void injectExtra(QGeoLocation &location, const QJsonObject &object)
QStringLiteral("place_id"),
QStringLiteral("class") };
- for (const auto k: extraKeys) {
+ for (const auto &k: extraKeys) {
if (object.contains(k)) {
extra[k] = object.value(k).toVariant();
if (k == QStringLiteral("geojson"))