From 9e7ccaa8012bf19d2ebf4ce9425f5072391d954c Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 20 Jul 2015 10:36:14 +0200 Subject: [PATCH] fix build don't mix itarators and constIterators --- containments/homescreen/applicationlistmodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/containments/homescreen/applicationlistmodel.cpp b/containments/homescreen/applicationlistmodel.cpp index 47e22c68..f1a34f0a 100644 --- a/containments/homescreen/applicationlistmodel.cpp +++ b/containments/homescreen/applicationlistmodel.cpp @@ -101,7 +101,7 @@ void ApplicationListModel::loadApplications() QList unorderedList; // Iterate over all entries in the group - for(KServiceGroup::List::ConstIterator it = subGroupList.begin();it != subGroupList.end(); it++) { + for(KServiceGroup::List::ConstIterator it = subGroupList.constBegin(); it != subGroupList.constEnd(); it++) { KSycocaEntry::Ptr groupEntry = (*it); if (groupEntry->isType(KST_KServiceGroup)) { @@ -110,7 +110,7 @@ void ApplicationListModel::loadApplications() if (!serviceGroup->noDisplay()) { KServiceGroup::List entryGroupList = serviceGroup->entries(true); - for(KServiceGroup::List::ConstIterator it = entryGroupList.begin(); it != entryGroupList.end(); it++) { + for(KServiceGroup::List::ConstIterator it = entryGroupList.constBegin(); it != entryGroupList.constEnd(); it++) { KSycocaEntry::Ptr entry = (*it); ApplicationData data;