Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use Q_FOREACH
  • Loading branch information
m-kuhn committed Jul 12, 2016
1 parent 10b7beb commit 40c5955
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/core/qgsproviderregistry.cpp
Expand Up @@ -108,11 +108,8 @@ void QgsProviderRegistry::init()
fileRegexp.setPattern( filePattern );
}

QListIterator<QFileInfo> 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 )
Expand Down

0 comments on commit 40c5955

Please sign in to comment.