summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-12-05 23:24:41 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2022-12-07 00:55:06 +0100
commit075b7a868f5334028d06c7fb5b5aa09b64365358 (patch)
treefab0c3152c28614848d35f423c2cfbd0f6db1ac0 /tests
parent1e30c174402b35d51e5962678e75595ad8f716dc (diff)
downloadqtlocation-075b7a868f5334028d06c7fb5b5aa09b64365358.tar.gz
Mark the module as free of qAsConst()
Change-Id: Ie67ec9b4f1f808b3b70ca7beb98f90c9cd1f2a9f Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/geotestplugin/qplacemanagerengine_test.h2
-rw-r--r--tests/auto/nokia_services/places_semiauto/tst_places.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/geotestplugin/qplacemanagerengine_test.h b/tests/auto/geotestplugin/qplacemanagerengine_test.h
index d09b3aa6..2c1dc0b6 100644
--- a/tests/auto/geotestplugin/qplacemanagerengine_test.h
+++ b/tests/auto/geotestplugin/qplacemanagerengine_test.h
@@ -500,7 +500,7 @@ public:
} else if (!query.categories().isEmpty()) {
const auto &categoryList = query.categories();
const QSet<QPlaceCategory> categories(categoryList.cbegin(), categoryList.cend());
- for (const QPlace &place : qAsConst(m_places)) {
+ for (const QPlace &place : std::as_const(m_places)) {
const auto &placeCategoryList = place.categories();
const QSet<QPlaceCategory> placeCategories(placeCategoryList.cbegin(), placeCategoryList.cend());
if (!placeCategories.intersects(categories))
diff --git a/tests/auto/nokia_services/places_semiauto/tst_places.cpp b/tests/auto/nokia_services/places_semiauto/tst_places.cpp
index 0cf879bd..6fe46b15 100644
--- a/tests/auto/nokia_services/places_semiauto/tst_places.cpp
+++ b/tests/auto/nokia_services/places_semiauto/tst_places.cpp
@@ -618,7 +618,7 @@ void tst_QPlaceManagerNokia::content()
QVERIFY(results.count() > 0);
- for (const auto &content : qAsConst(results)) {
+ for (const auto &content : std::as_const(results)) {
switch (type) {
case QPlaceContent::ImageType:
QVERIFY(!content.value(QPlaceContent::ImageUrl).value<QUrl>().isEmpty());