[Libreoffice-commits] core.git: accessibility/source binaryurp/source
Julien Nabet (via logerrit)
logerrit at kemper.freedesktop.org
Sat Jun 5 14:21:40 UTC 2021
accessibility/source/extended/AccessibleGridControlHeader.cxx | 6 ++----
accessibility/source/extended/AccessibleGridControlTable.cxx | 3 +--
binaryurp/source/bridge.cxx | 3 +--
3 files changed, 4 insertions(+), 8 deletions(-)
New commits:
commit 3e8e5f079e032a2b7b709bc01113f14da893263c
Author: Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Sat Jun 5 00:21:06 2021 +0200
Commit: Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Sat Jun 5 16:21:03 2021 +0200
Simplify Sequences initializations (accessibility/binaryurp)
Change-Id: I4b388b7faa1dc47f27d29aaaff9041fe81a29f71
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116739
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
diff --git a/accessibility/source/extended/AccessibleGridControlHeader.cxx b/accessibility/source/extended/AccessibleGridControlHeader.cxx
index d5f80820a4e3..7c6c2df5925d 100644
--- a/accessibility/source/extended/AccessibleGridControlHeader.cxx
+++ b/accessibility/source/extended/AccessibleGridControlHeader.cxx
@@ -140,14 +140,12 @@ Reference< XAccessibleTable > SAL_CALL AccessibleGridControlHeader::getAccessibl
//not selectable
Sequence< sal_Int32 > SAL_CALL AccessibleGridControlHeader::getSelectedAccessibleRows()
{
- Sequence< sal_Int32 > aSelSeq(0);
- return aSelSeq;
+ return {};
}
//columns aren't selectable
Sequence< sal_Int32 > SAL_CALL AccessibleGridControlHeader::getSelectedAccessibleColumns()
{
- Sequence< sal_Int32 > aSelSeq(0);
- return aSelSeq;
+ return {};
}
//row headers not selectable
sal_Bool SAL_CALL AccessibleGridControlHeader::isAccessibleRowSelected( sal_Int32 /*nRow*/ )
diff --git a/accessibility/source/extended/AccessibleGridControlTable.cxx b/accessibility/source/extended/AccessibleGridControlTable.cxx
index eb222d6ed6ac..ffb8108d0f24 100644
--- a/accessibility/source/extended/AccessibleGridControlTable.cxx
+++ b/accessibility/source/extended/AccessibleGridControlTable.cxx
@@ -155,8 +155,7 @@ Sequence< sal_Int32 > SAL_CALL AccessibleGridControlTable::getSelectedAccessible
//columns aren't selectable
Sequence< sal_Int32 > SAL_CALL AccessibleGridControlTable::getSelectedAccessibleColumns()
{
- Sequence< sal_Int32 > aSelSeq(0);
- return aSelSeq;
+ return {};
}
sal_Bool SAL_CALL AccessibleGridControlTable::isAccessibleRowSelected( sal_Int32 nRow )
diff --git a/binaryurp/source/bridge.cxx b/binaryurp/source/bridge.cxx
index acefb175e8ec..007e7e9440df 100644
--- a/binaryurp/source/bridge.cxx
+++ b/binaryurp/source/bridge.cxx
@@ -951,8 +951,7 @@ void Bridge::sendCommitChangeRequest() {
assert(mode_ == MODE_REQUESTED || mode_ == MODE_REPLY_1);
css::uno::Sequence< css::bridge::ProtocolProperty > s(1);
s[0].Name = "CurrentContext";
- std::vector< BinaryAny > a;
- a.push_back(mapCppToBinaryAny(css::uno::Any(s)));
+ std::vector< BinaryAny > a { mapCppToBinaryAny(css::uno::Any(s)) };
sendProtPropRequest(OutgoingRequest::KIND_COMMIT_CHANGE, a);
}
More information about the Libreoffice-commits
mailing list