Skip to content

Commit 6fca53c

Browse files
committedApr 10, 2023
Avoid spurious cpp check function can be const warning
1 parent e2cbd50 commit 6fca53c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎src/gui/qgsproviderguiregistry.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,9 @@ QgsProviderGuiRegistry::~QgsProviderGuiRegistry()
219219

220220
void QgsProviderGuiRegistry::registerGuis( QMainWindow *parent )
221221
{
222-
GuiProviders::const_iterator it = mProviders.begin();
223-
while ( it != mProviders.end() )
222+
for ( auto it = mProviders.begin(); it != mProviders.end(); ++it )
224223
{
225224
it->second->registerGui( parent );
226-
++it;
227225
}
228226
}
229227

0 commit comments

Comments
 (0)
Please sign in to comment.