[Libreoffice-commits] core.git: sc/source sw/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Wed Oct 23 16:12:42 UTC 2019
sc/source/ui/Accessibility/AccessibleDocument.cxx | 1 +
sw/source/core/access/accdoc.cxx | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 00af5c36e16c233fe365b3da770cf420cd415c24
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Oct 23 14:17:56 2019 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Oct 23 18:10:51 2019 +0200
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 at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
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;
}
}
More information about the Libreoffice-commits
mailing list