summaryrefslogtreecommitdiffstats
path: root/binaryurp/source/bridge.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'binaryurp/source/bridge.cxx')
-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;
}