diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2017-12-17 23:00:24 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-18 07:36:32 +0100 |
commit | 4e144751f12a06e358e4f7efa7c8f13954e6cfd7 (patch) | |
tree | c6df66d58d02ecaf5caa437a944665fe83959402 /desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx | |
parent | 39c618caf5aa19da95285bec6cab7108bee3984c (diff) |
loplugin:unusedindex
Change-Id: I256a807dd2a4c81126b5a76f3d472e31b8224146
Reviewed-on: https://gerrit.libreoffice.org/46652
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx')
-rw-r--r-- | desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx b/desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx index a9eb2cdb1488..6ed4cd3cd3a7 100644 --- a/desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx +++ b/desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx @@ -284,16 +284,11 @@ void CommandEnvironmentImpl::handle( } // select: - Sequence< Reference<task::XInteractionContinuation> > conts( - xRequest->getContinuations() ); - Reference<task::XInteractionContinuation> const * pConts = - conts.getConstArray(); - sal_Int32 len = conts.getLength(); - for ( sal_Int32 pos = 0; pos < len; ++pos ) + for ( auto const& rCont : xRequest->getContinuations() ) { if (approve) { Reference<task::XInteractionApprove> xInteractionApprove( - pConts[ pos ], UNO_QUERY ); + rCont, UNO_QUERY ); if (xInteractionApprove.is()) { xInteractionApprove->select(); break; @@ -301,7 +296,7 @@ void CommandEnvironmentImpl::handle( } else if (abort) { Reference<task::XInteractionAbort> xInteractionAbort( - pConts[ pos ], UNO_QUERY ); + rCont, UNO_QUERY ); if (xInteractionAbort.is()) { xInteractionAbort->select(); break; |