From baac1c9c32ff653ca8ae0acd50390434d7b20253 Mon Sep 17 00:00:00 2001 From: Egor Shestakov Date: Thu, 10 Oct 2024 20:20:19 +0700 Subject: [PATCH] fix range-loop-construct warnings --- server/src/mapmanagerfeature.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/mapmanagerfeature.cpp b/server/src/mapmanagerfeature.cpp index 41fa6683..b6abb2d1 100644 --- a/server/src/mapmanagerfeature.cpp +++ b/server/src/mapmanagerfeature.cpp @@ -555,7 +555,7 @@ FeatureValhalla::PackStateType FeatureValhalla::getPackState(QString pack, QStri { QStringList tiles = getPackTileNames(listname); if (tiles.isEmpty()) return PackNotAvailable; // either list is empty or there was error opening it - for (const QString tilename: tiles) + for (const QString &tilename: tiles) if (!dir.exists(m_path_provider->fullPath(tilename))) { return PackNotAvailable; @@ -653,7 +653,7 @@ void FeatureValhalla::fillWantedFiles(const QJsonObject &request, wanted.insert( listname ); QStringList tiles = getPackTileNames(listname); - for (const QString tilename: tiles) + for (const QString &tilename: tiles) wanted.insert( m_path_provider->fullPath(tilename) ); } }