diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-15 09:56:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-15 14:00:48 +0200 |
commit | 898cbb22f07a2c1487700326f134fe54e7a13f4d (patch) | |
tree | d5bdd749ca565f74976653c7cac90e1eaecc74d6 /binaryurp/source | |
parent | 10cdeed12ef834f5df3b6577c1d9efcc811d6938 (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'binaryurp/source')
-rw-r--r-- | binaryurp/source/bridge.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |