[Libreoffice-commits] core.git: sw/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Sun Aug 29 06:51:15 UTC 2021


 sw/source/core/text/porlay.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 0d25d7418d66ce17900f68623dd69e3f6789392e
Author:     Noel Grandin <noel at peralex.com>
AuthorDate: Sat Aug 28 19:06:27 2021 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Sun Aug 29 08:50:42 2021 +0200

    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 at collabora.co.uk>

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 );


More information about the Libreoffice-commits mailing list