From b33ff1a083d95388997cf301d8a1538a41c08255 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 20 May 2020 08:48:56 +0200 Subject: 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 --- embedserv/source/embed/intercept.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'embedserv') 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 const & k : std::as_const(aSeq)) { - uno::Reference - Control(aSeq[k],uno::UNO_QUERY); + uno::Reference Control(k,uno::UNO_QUERY); if(Control.is()) Control->statusChanged(aStateEvent); -- cgit