diff options
-rw-r--r-- | desktop/source/app/dispatchwatcher.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/desktop/source/app/dispatchwatcher.cxx b/desktop/source/app/dispatchwatcher.cxx index 35864f18b3a3..63e08c75310d 100644 --- a/desktop/source/app/dispatchwatcher.cxx +++ b/desktop/source/app/dispatchwatcher.cxx @@ -184,16 +184,13 @@ bool DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatchRequ { Reference< XDesktop2 > xDesktop = css::frame::Desktop::create( ::comphelper::getProcessComponentContext() ); - DispatchList::const_iterator p; std::vector< DispatchHolder > aDispatches; OUString aAsTemplateArg( "AsTemplate" ); bool bSetInputFilter = false; OUString aForcedInputFilter; - for ( p = aDispatchRequestsList.begin(); p != aDispatchRequestsList.end(); ++p ) + for (auto const & aDispatchRequest: aDispatchRequestsList) { - const DispatchRequest& aDispatchRequest = *p; - // create parameter array sal_Int32 nCount = 4; if ( !aDispatchRequest.aPreselectedFactory.isEmpty() ) |