From 40c5955c5c909ffdfeae4d5d1a5c865c4fdd8c5e Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Tue, 12 Jul 2016 19:29:54 +0200 Subject: [PATCH] Use Q_FOREACH --- src/core/qgsproviderregistry.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core/qgsproviderregistry.cpp b/src/core/qgsproviderregistry.cpp index 8108d2bcd539..9e4d5beb3206 100644 --- a/src/core/qgsproviderregistry.cpp +++ b/src/core/qgsproviderregistry.cpp @@ -108,11 +108,8 @@ void QgsProviderRegistry::init() fileRegexp.setPattern( filePattern ); } - QListIterator it( mLibraryDirectory.entryInfoList() ); - while ( it.hasNext() ) + Q_FOREACH ( const QFileInfo& fi, mLibraryDirectory.entryInfoList() ) { - QFileInfo fi( it.next() ); - if ( !fileRegexp.isEmpty() ) { if ( fileRegexp.indexIn( fi.fileName() ) == -1 )