From 898cbb22f07a2c1487700326f134fe54e7a13f4d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 15 May 2020 09:56:35 +0200 Subject: use for-range on Sequence in basctl..canvas Change-Id: Idad3d8fbe785c7b1b8b287a3227372adb2757de8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94260 Tested-by: Jenkins Reviewed-by: Noel Grandin --- binaryurp/source/bridge.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'binaryurp/source') diff --git a/binaryurp/source/bridge.cxx b/binaryurp/source/bridge.cxx index 5664558f55cd..1be59b933a70 100644 --- a/binaryurp/source/bridge.cxx +++ b/binaryurp/source/bridge.cxx @@ -769,8 +769,8 @@ void Bridge::handleCommitChangeRequest( css::uno::Sequence< css::bridge::ProtocolProperty > s; [[maybe_unused]] bool ok = (mapBinaryToCppAny(inArguments[0]) >>= s); assert(ok); - for (sal_Int32 i = 0; i != s.getLength(); ++i) { - if (s[i].Name == "CurrentContext") { + for (const auto & pp : std::as_const(s)) { + if (pp.Name == "CurrentContext") { bCcMode = true; } else { bCcMode = false; @@ -779,7 +779,7 @@ void Bridge::handleCommitChangeRequest( css::uno::Any( css::bridge::InvalidProtocolChangeException( "InvalidProtocolChangeException", - css::uno::Reference< css::uno::XInterface >(), s[i], + css::uno::Reference< css::uno::XInterface >(), pp, 1))); break; } -- cgit