From dbd7fa12a9b299376caa05c972d34cc60e17c0f6 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Tue, 11 Nov 2008 18:24:06 +0000 Subject: [PATCH] Fix iterator svn path=/trunk/KDE/kdegraphics/okular/; revision=882947 --- shell/shell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/shell.cpp b/shell/shell.cpp index d35d71e59..b60460a74 100644 --- a/shell/shell.cpp +++ b/shell/shell.cpp @@ -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;