chart2/source/model/main/Axis.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 86488ad12d0a61592880f733ecf0e4d86ea95f72
Author:     Silvery Freakz <[email protected]>
AuthorDate: Mon Oct 20 20:59:22 2025 +0200
Commit:     Mike Kaganski <[email protected]>
CommitDate: Tue Oct 21 06:36:24 2025 +0200

    Use assign() instead of insert()
    
    Since aOldBroadcasters is empty at this point, assign() is efficient than 
insert(). This is a cleanup following the already merged patch.
    
    Change-Id: I8315a5c8021a67f003f84f3002a13c1511dc04c5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192744
    Reviewed-by: Mike Kaganski <[email protected]>
    Tested-by: Jenkins

diff --git a/chart2/source/model/main/Axis.cxx 
b/chart2/source/model/main/Axis.cxx
index 77310b8fd696..f8f0068fb1fe 100644
--- a/chart2/source/model/main/Axis.cxx
+++ b/chart2/source/model/main/Axis.cxx
@@ -369,8 +369,7 @@ void Axis::AllocateSubGrids()
         if( nOldSubIncCount > nNewSubIncCount )
         {
             // remove superfluous entries
-            aOldBroadcasters.insert(
-                aOldBroadcasters.end(),
+            aOldBroadcasters.assign(
                 m_aSubGridProperties.begin() + nNewSubIncCount,
                 m_aSubGridProperties.end());
 

Reply via email to