Skip to content

Commit f34c79c

Browse files
committedJul 12, 2016
Use Q_FOREACH
1 parent e49661d commit f34c79c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed
 

‎src/core/qgsproviderregistry.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,8 @@ void QgsProviderRegistry::init()
108108
fileRegexp.setPattern( filePattern );
109109
}
110110

111-
QListIterator<QFileInfo> it( mLibraryDirectory.entryInfoList() );
112-
while ( it.hasNext() )
111+
Q_FOREACH ( const QFileInfo& fi, mLibraryDirectory.entryInfoList() )
113112
{
114-
QFileInfo fi( it.next() );
115-
116113
if ( !fileRegexp.isEmpty() )
117114
{
118115
if ( fileRegexp.indexIn( fi.fileName() ) == -1 )

0 commit comments

Comments
 (0)
Please sign in to comment.