summaryrefslogtreecommitdiff
path: root/drawinglayer/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-12-01 11:24:49 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-12-01 15:13:06 +0100
commit2b1d0d7b3d8df805abefdb4b4a80f8f17d6924cc (patch)
treecf7d0e5585a7e8e79256ee0b779885b8e23dec4a /drawinglayer/source
parent4a3964c904388c433066f7d1ab6f457374618182 (diff)
OutputDevice::GetTextArray will always set the size of the vector anyway
Change-Id: I52f24e50455c0d480f8976ee63e442008c05c192 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143520 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'drawinglayer/source')
-rw-r--r--drawinglayer/source/primitive2d/textlayoutdevice.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/drawinglayer/source/primitive2d/textlayoutdevice.cxx b/drawinglayer/source/primitive2d/textlayoutdevice.cxx
index 78e0c23189ad..fcc9b401fa48 100644
--- a/drawinglayer/source/primitive2d/textlayoutdevice.cxx
+++ b/drawinglayer/source/primitive2d/textlayoutdevice.cxx
@@ -308,7 +308,7 @@ std::vector<double> TextLayouterDevice::getTextArray(const OUString& rText, sal_
if (nTextLength)
{
aRetval.reserve(nTextLength);
- std::vector<sal_Int32> aArray(nTextLength);
+ std::vector<sal_Int32> aArray;
mrDevice.GetTextArray(rText, &aArray, nIndex, nTextLength);
aRetval.assign(aArray.begin(), aArray.end());
}