summaryrefslogtreecommitdiff
path: root/src/location/declarativeplaces/qdeclarativesupportedcategoriesmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/location/declarativeplaces/qdeclarativesupportedcategoriesmodel.cpp')
-rw-r--r--src/location/declarativeplaces/qdeclarativesupportedcategoriesmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/location/declarativeplaces/qdeclarativesupportedcategoriesmodel.cpp b/src/location/declarativeplaces/qdeclarativesupportedcategoriesmodel.cpp
index cf7be29b..5c50c65c 100644
--- a/src/location/declarativeplaces/qdeclarativesupportedcategoriesmodel.cpp
+++ b/src/location/declarativeplaces/qdeclarativesupportedcategoriesmodel.cpp
@@ -643,7 +643,7 @@ QStringList QDeclarativeSupportedCategoriesModel::populateCategories(QPlaceManag
auto categories = manager->childCategories(parent.categoryId());
std::sort(categories.begin(), categories.end(), byName);
- for (const auto &category : qAsConst(categories)) {
+ for (const auto &category : std::as_const(categories)) {
auto node = new PlaceCategoryNode;
node->parentId = parent.categoryId();
node->declCategory = QSharedPointer<QDeclarativeCategory>(new QDeclarativeCategory(category, m_plugin ,this));