Commit dbd7fa12 authored by Laurent Montel's avatar Laurent Montel 😁

Fix iterator

svn path=/trunk/KDE/kdegraphics/okular/; revision=882947
parent 38a3e182
......@@ -210,7 +210,7 @@ QStringList Shell::fileFormats() const
QString constraint( "(Library == 'okularpart')" );
QLatin1String basePartService( "KParts/ReadOnlyPart" );
KService::List offers = KServiceTypeTrader::self()->query( basePartService, constraint );
KService::List::ConstIterator it = offers.begin(), itEnd = offers.end();
KService::List::ConstIterator it = offers.constBegin(), itEnd = offers.constEnd();
for ( ; it != itEnd; ++it )
{
KService::Ptr service = *it;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment