summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2021-08-28 19:06:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-08-29 08:50:42 +0200
commit0d25d7418d66ce17900f68623dd69e3f6789392e (patch)
tree431e0e588c60ea51be9a70266c538379e67a31dc /sw
parent17ea551989005433bab1a9351ecd6fb6c283caea (diff)
micro-opt: prevent some vector re-allocs
Change-Id: I183af9765f5afe6c552a83e8f4fd4d7edafe0427 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121210 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/text/porlay.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/core/text/porlay.cxx b/sw/source/core/text/porlay.cxx
index 5a2ee141a67d..9c214ac714ce 100644
--- a/sw/source/core/text/porlay.cxx
+++ b/sw/source/core/text/porlay.cxx
@@ -1100,6 +1100,7 @@ void SwScriptInfo::InitScriptInfo(const SwTextNode& rNode,
}
}
+ m_HiddenChg.reserve( aHiddenMulti.GetRangeCount() * 2 );
for (sal_Int32 i = 0; i < aHiddenMulti.GetRangeCount(); ++i)
{
const Range& rRange = aHiddenMulti.GetRange( i );