diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-20 08:48:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-20 21:31:13 +0200 |
commit | b33ff1a083d95388997cf301d8a1538a41c08255 (patch) | |
tree | 35c773fc0be7c6e4c4b479c9594fb1e8843ef183 /embedserv | |
parent | fb149c68db909e6ec17520e277583ed759a0d49a (diff) |
use for-range on Sequence in e*
Change-Id: I77dc12356ee45b1dee9acaf8a73dea81588822d3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94554
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'embedserv')
-rw-r--r-- | embedserv/source/embed/intercept.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/embedserv/source/embed/intercept.cxx b/embedserv/source/embed/intercept.cxx index 8e20086f6dd7..ebe94913744b 100644 --- a/embedserv/source/embed/intercept.cxx +++ b/embedserv/source/embed/intercept.cxx @@ -243,10 +243,9 @@ void Interceptor::generateFeatureStateEvent() } - for(sal_Int32 k = 0; k < aSeq.getLength(); ++k) + for(uno::Reference<uno::XInterface> const & k : std::as_const(aSeq)) { - uno::Reference<frame::XStatusListener> - Control(aSeq[k],uno::UNO_QUERY); + uno::Reference<frame::XStatusListener> Control(k,uno::UNO_QUERY); if(Control.is()) Control->statusChanged(aStateEvent); |