summaryrefslogtreecommitdiffstats
path: root/binaryurp
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-15 09:56:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-15 14:00:48 +0200
commit898cbb22f07a2c1487700326f134fe54e7a13f4d (patch)
treed5bdd749ca565f74976653c7cac90e1eaecc74d6 /binaryurp
parenttdf#133036 notebookbar customize uses a special combobox id (diff)
downloadcore-898cbb22f07a2c1487700326f134fe54e7a13f4d.tar.gz
core-898cbb22f07a2c1487700326f134fe54e7a13f4d.zip
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')
-rw-r--r--binaryurp/source/bridge.cxx6
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;
}