diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-19 16:55:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-19 21:29:10 +0200 |
commit | 8cc530b1ecbb706e998177ab6e85f33ac111b389 (patch) | |
tree | bce261b41f9175dd5048b24dac984852729338fe /sw | |
parent | 648f06e583cf2cd878580c587afb5813c3db4e33 (diff) |
size this OUStringBuffer at initial construction
Change-Id: I6414281cef5eedf1e797139695bf05c72c300447
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140181
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/fields/reffld.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/fields/reffld.cxx b/sw/source/core/fields/reffld.cxx index eb36f8d44f90..277540d12ee0 100644 --- a/sw/source/core/fields/reffld.cxx +++ b/sw/source/core/fields/reffld.cxx @@ -401,7 +401,7 @@ const SwTextNode* SwGetRefField::GetReferencedTextNode() const // strikethrough for tooltips using Unicode combining character static OUString lcl_formatStringByCombiningCharacter(const OUString& sText, const sal_Unicode cChar) { - OUStringBuffer sRet; + OUStringBuffer sRet(sText.getLength() * 2); for (sal_Int32 i = 0; i < sText.getLength(); ++i) { sRet.append(sText[i]); |