diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-02-27 12:55:25 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-02-27 12:55:25 +0100 |
commit | f058cedb5f166766448477138980bb32849a7605 (patch) | |
tree | 70e85c8ce065bf55aa643ebcebaa21cb5ad96273 | |
parent | 74f6850a8ecd839ef76b6eef704fff408d3e639e (diff) |
loplugin:loopvartoosmall
Change-Id: I05874c22883a98f09c9231c0e0ff0dff93e2d643
-rw-r--r-- | framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx index 995034248b9d..5cd3fc0a2739 100644 --- a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx +++ b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx @@ -1067,11 +1067,10 @@ void SAL_CALL ModuleUIConfigurationManager::reset() aGuard.clear(); // Notify our listeners - sal_uInt32 k = 0; - for ( k = 0; k < aRemoveEventNotifyContainer.size(); k++ ) - implts_notifyContainerListener( aRemoveEventNotifyContainer[k], NotifyOp_Remove ); - for ( k = 0; k < aReplaceEventNotifyContainer.size(); k++ ) - implts_notifyContainerListener( aReplaceEventNotifyContainer[k], NotifyOp_Replace ); + for ( auto const & k: aRemoveEventNotifyContainer ) + implts_notifyContainerListener( k, NotifyOp_Remove ); + for ( auto const & k: aReplaceEventNotifyContainer ) + implts_notifyContainerListener( k, NotifyOp_Replace ); } catch ( const css::lang::IllegalArgumentException& ) { |