diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2018-02-12 09:47:38 +0100 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-02-12 11:15:56 +0100 |
commit | a377db06eaf76d222c0e116a4c0f62a7e7736a26 (patch) | |
tree | 9a6e37093b9564f03b653f1ae97e69e5b3714a73 /sfx2/source | |
parent | 980de246715c95b6961367baf409c270dab58bc0 (diff) |
Use range-based for
Change-Id: I7ec311255a571fc19360b7cb6d3885f433f42426
Reviewed-on: https://gerrit.libreoffice.org/49577
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/control/unoctitm.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index 1ebb919fbab7..31364d8f84a3 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -970,12 +970,10 @@ void SfxDispatchController_Impl::StateChanged( sal_uInt16 nSID, SfxItemState eSt InterceptLOKStateChangeEvent(pDispatcher->GetFrame(), aEvent, pState); } - Sequence< OUString > seqNames = pDispatch->GetListeners().getContainedTypes(); - sal_Int32 nLength = seqNames.getLength(); - for (sal_Int32 i = 0; i < nLength; ++i) + for (const OUString& rName: pDispatch->GetListeners().getContainedTypes()) { - if (seqNames[i] == aDispatchURL.Main || seqNames[i] == aDispatchURL.Complete) - sendStatusChanged(seqNames[i], aEvent); + if (rName == aDispatchURL.Main || rName == aDispatchURL.Complete) + sendStatusChanged(rName, aEvent); } } } |