diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2021-06-05 00:21:06 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-06-05 16:21:03 +0200 |
commit | 3e8e5f079e032a2b7b709bc01113f14da893263c (patch) | |
tree | f84410766900e75f51987ede1b62af67c5cac965 /accessibility | |
parent | a3d2d01f55260ad422e07d4f326fc01f0414bd1d (diff) |
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@yahoo.fr>
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/source/extended/AccessibleGridControlHeader.cxx | 6 | ||||
-rw-r--r-- | accessibility/source/extended/AccessibleGridControlTable.cxx | 3 |
2 files changed, 3 insertions, 6 deletions
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 ) |