summaryrefslogtreecommitdiff
path: root/desktop/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-03-11 14:57:33 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-03-11 16:41:58 +0100
commit9095c5495b0760aef4bd0a4f9539e2178a11063a (patch)
treeb22e06380d970d1c323cc87cf3aa3f04065b4c04 /desktop/source
parent2a9095570a2430568f5c5e1c91edd6a717e099a6 (diff)
Use range-based for loop
Change-Id: Icf9dd7ffdc39ff64e9eac11050c8bfbfef6f004d
Diffstat (limited to 'desktop/source')
-rw-r--r--desktop/source/app/dispatchwatcher.cxx5
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() )