sw/source/core/doc/DocumentContentOperationsManager.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 198819764694608d0c5e519c2b87ed64ae906bca
Author:     Noel Grandin <[email protected]>
AuthorDate: Tue Feb 10 15:26:29 2026 +0200
Commit:     Miklos Vajna <[email protected]>
CommitDate: Fri Feb 13 09:43:16 2026 +0100

    tdf#170595 we can reduce re-alloc a little here
    
    by sizing the vector up front
    
    Change-Id: I69db8759c329525e25b05d13abd6c041b4b44965
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199268
    Reviewed-by: Miklos Vajna <[email protected]>
    Tested-by: Jenkins CollaboraOffice <[email protected]>

diff --git a/sw/source/core/doc/DocumentContentOperationsManager.cxx 
b/sw/source/core/doc/DocumentContentOperationsManager.cxx
index 133923e3119e..23fc53deb3ca 100644
--- a/sw/source/core/doc/DocumentContentOperationsManager.cxx
+++ b/sw/source/core/doc/DocumentContentOperationsManager.cxx
@@ -4101,6 +4101,7 @@ void DocumentContentOperationsManager::CopyFlyInFlyImpl(
     // They are stored as matching the originals, so that we will be later
     // able to build the chains accordingly.
     std::vector< SwFrameFormat* > aVecSwFrameFormat;
+    aVecSwFrameFormat.reserve(aSet.size());
     std::set< ZSortFly >::const_iterator it=aSet.begin();
 
     while (it != aSet.end())

Reply via email to