Prepare for removal of non-const operator[] from Sequence in binaryurp
Change-Id: Ibbe07a6de488461a99bb06d558cf740caa606bc9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124344 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
parent
81a7d46d9f
commit
f6aef99057
2 changed files with 4 additions and 3 deletions
|
@ -950,7 +950,7 @@ void Bridge::removeEventListener(
|
|||
void Bridge::sendCommitChangeRequest() {
|
||||
assert(mode_ == MODE_REQUESTED || mode_ == MODE_REPLY_1);
|
||||
css::uno::Sequence< css::bridge::ProtocolProperty > s(1);
|
||||
s[0].Name = "CurrentContext";
|
||||
s.getArray()[0].Name = "CurrentContext";
|
||||
std::vector< BinaryAny > a { mapCppToBinaryAny(css::uno::Any(s)) };
|
||||
sendProtPropRequest(OutgoingRequest::KIND_COMMIT_CHANGE, a);
|
||||
}
|
||||
|
|
|
@ -141,12 +141,13 @@ BridgeFactory::getExistingBridges() {
|
|||
}
|
||||
n = static_cast< sal_Int32 >(n + named_.size());
|
||||
css::uno::Sequence< css::uno::Reference< css::bridge::XBridge > > s(n);
|
||||
auto r = asNonConstRange(s);
|
||||
sal_Int32 i = 0;
|
||||
for (auto const& item : unnamed_)
|
||||
s[i++] = item;
|
||||
r[i++] = item;
|
||||
|
||||
for (auto const& item : named_)
|
||||
s[i++] = item.second;
|
||||
r[i++] = item.second;
|
||||
|
||||
return s;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue