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

New commits:
commit d41d07b3eb875345451c789f3b6ab8f3f028d367
Author:     Noel Grandin <[email protected]>
AuthorDate: Tue Feb 10 15:26:29 2026 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Fri Feb 13 09:46:59 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/+/199265
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <[email protected]>

diff --git a/sw/source/core/doc/DocumentContentOperationsManager.cxx 
b/sw/source/core/doc/DocumentContentOperationsManager.cxx
index b6664477f370..e05e9390fc71 100644
--- a/sw/source/core/doc/DocumentContentOperationsManager.cxx
+++ b/sw/source/core/doc/DocumentContentOperationsManager.cxx
@@ -4151,6 +4151,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