From f058cedb5f166766448477138980bb32849a7605 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 27 Feb 2017 12:55:25 +0100 Subject: loplugin:loopvartoosmall Change-Id: I05874c22883a98f09c9231c0e0ff0dff93e2d643 --- .../source/uiconfiguration/moduleuiconfigurationmanager.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'framework') 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& ) { -- cgit