diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-13 12:11:00 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-14 14:43:28 +0200 |
commit | 451efe2d7df16e61221fce4eafdba1fc7feaf60e (patch) | |
tree | 648f1616fd702317b7fbcd2750ee464cf59efbed /editeng/source | |
parent | 6c5542a82135b3527f883110d45a935661985d30 (diff) |
reserve space in vector in ImpEditEngine::CreateTextObject
Change-Id: I4fd49ab81808b3912445b4037a50a5cd85c74144
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134308
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng/source')
-rw-r--r-- | editeng/source/editeng/impedit4.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx index 6520b0034727..9b1ec896612a 100644 --- a/editeng/source/editeng/impedit4.cxx +++ b/editeng/source/editeng/impedit4.cxx @@ -1043,6 +1043,7 @@ std::unique_ptr<EditTextObject> ImpEditEngine::CreateTextObject( EditSelection a // and the Attribute... std::size_t nAttr = 0; EditCharAttrib* pAttr = GetAttrib( pNode->GetCharAttribs().GetAttribs(), nAttr ); + rCAttriblist.reserve(rCAttriblist.size() + pNode->GetCharAttribs().GetAttribs().size()); while ( pAttr ) { // In a blank paragraph keep the attributes! |