Skip to content
Permalink
Browse files

Use Q_FOREACH

  • Loading branch information
m-kuhn committed Jul 12, 2016
1 parent e49661d commit f34c79c04b702661f184eab1c3758ceebdb0efd1
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/core/qgsproviderregistry.cpp
@@ -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 )

0 comments on commit f34c79c

Please sign in to comment.
You can’t perform that action at this time.