diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-14 12:30:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-14 13:37:08 +0200 |
commit | c998691e22ceda15c89d55cf7005201f0392dadb (patch) | |
tree | ea9d8eb9c15a07cd97705cfcafa9d23b9de10ede /sc/source | |
parent | 42da199753515584e615cdcdd8601d2ffc27245b (diff) |
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.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/core/tool/grouparealistener.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
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) |