sc/source/core/tool/grouparealistener.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit c998691e22ceda15c89d55cf7005201f0392dadb
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Thu Oct 14 12:30:54 2021 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Thu Oct 14 13:37:08 2021 +0200

    tdf#119083 small improvement to large vlookup sheet insert
    
    Change-Id: Ia1742944fa42dc8a31161d10580b240b2c7c4052
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123582
    Tested-by: Noel Grandin <noel.gran...@collabora.co.uk>
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/sc/source/core/tool/grouparealistener.cxx 
b/sc/source/core/tool/grouparealistener.cxx
index fa234fbcc1c1..3fab01bd2c75 100644
--- a/sc/source/core/tool/grouparealistener.cxx
+++ b/sc/source/core/tool/grouparealistener.cxx
@@ -258,8 +258,7 @@ void FormulaGroupAreaListener::collectFormulaCells(
             if (nRow2 < nRefRow1 || nRefRow2 < nRow1)
                 return;
 
-            for (; pp != ppEnd; ++pp)
-                rCells.push_back(*pp);
+            rCells.insert(rCells.end(), pp, ppEnd);
         }
         else
         {
@@ -281,8 +280,7 @@ void FormulaGroupAreaListener::collectFormulaCells(
             assert(nRow1 <= nRefRow2);
 
             // Notify the first hit cell and all subsequent ones.
-            for (; pp != ppEnd; ++pp)
-                rCells.push_back(*pp);
+            rCells.insert(rCells.end(), pp, ppEnd);
         }
     }
     else if (mbEndFixed)

Reply via email to