mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Use Q_FOREACH
This commit is contained in:
parent
e49661d7e0
commit
f34c79c04b
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user