summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2020-05-02 16:07:34 -0700
committerThiago Macieira <thiago.macieira@intel.com>2020-05-05 12:33:43 -0700
commit8b0c9024b1eb9b6a4ad2e440d6e7856ca3a09e80 (patch)
tree85046d106430edb53bb62a5d3f67bb3760a4e15d
parent2135da90e95cc697f4f1fe8e96eebc9c24d5f070 (diff)
downloadqtlocation-8b0c9024b1eb9b6a4ad2e440d6e7856ca3a09e80.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 Pick-To: 5.15 Change-Id: I99ab0f318b1c43b89888fffd160b4a12bee11723 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-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"))