diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-10-23 14:17:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-10-23 18:10:51 +0200 |
commit | 00af5c36e16c233fe365b3da770cf420cd415c24 (patch) | |
tree | 3399133eb63e5708cacb943970b5db08a80c175d | |
parent | 6c7b5b015d12f01d563c0e0efdb0b7e54d4896b7 (diff) |
realloc sequence to amount of inserted elements
Change-Id: I5c507287631dd5cc87a037d0af67de77aca556d1
Reviewed-on: https://gerrit.libreoffice.org/81385
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sc/source/ui/Accessibility/AccessibleDocument.cxx | 1 | ||||
-rw-r--r-- | sw/source/core/access/accdoc.cxx | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleDocument.cxx b/sc/source/ui/Accessibility/AccessibleDocument.cxx index dbce56b37c59..ee68adf3fdb0 100644 --- a/sc/source/ui/Accessibility/AccessibleDocument.cxx +++ b/sc/source/ui/Accessibility/AccessibleDocument.cxx @@ -2270,6 +2270,7 @@ css::uno::Sequence< css::uno::Any > ScAccessibleDocument::GetScAccFlowToSequence } } } + aSequence.realloc(nParaCount); return aSequence; } } diff --git a/sw/source/core/access/accdoc.cxx b/sw/source/core/access/accdoc.cxx index 9d498a4b3132..c1d542a4bd24 100644 --- a/sw/source/core/access/accdoc.cxx +++ b/sw/source/core/access/accdoc.cxx @@ -830,7 +830,7 @@ css::uno::Sequence< css::uno::Any > } nIndex++; } - + aRet.realloc(nIndex); return aRet; } } |