[Libreoffice-commits] core.git: framework/source
Stephan Bergmann
sbergman at redhat.com
Mon Feb 27 11:55:59 UTC 2017
framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
New commits:
commit f058cedb5f166766448477138980bb32849a7605
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Feb 27 12:55:25 2017 +0100
loplugin:loopvartoosmall
Change-Id: I05874c22883a98f09c9231c0e0ff0dff93e2d643
diff --git a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
index 9950342..5cd3fc0 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& )
{
More information about the Libreoffice-commits
mailing list