sw/source/core/edit/edredln.cxx |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

New commits:
commit 447935fba57f1b0f88c0b56cccf5bf971fb1e819
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Tue Mar 25 11:12:19 2025 +0100
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Tue Mar 25 18:24:01 2025 +0100

    cool#11357 sw redline reinstate: simplify ReinstateRedlinesInSelection()
    
    See
    
<https://gerrit.libreoffice.org/c/core/+/183291/2#message-27513c9877bf7779293a0ebd556e8da2115a4209>.
    
    Change-Id: Ifb11893d31ca300984234b7ece8610326962e55d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183308
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>

diff --git a/sw/source/core/edit/edredln.cxx b/sw/source/core/edit/edredln.cxx
index 6f2bec071498..fc388d5ffd86 100644
--- a/sw/source/core/edit/edredln.cxx
+++ b/sw/source/core/edit/edredln.cxx
@@ -223,11 +223,7 @@ void SwEditShell::ReinstateRedlinesInSelection()
 
     // Work on a copy, since reinstate will modify the table, and reinstate of 
just inserted
     // redlines is not wanted.
-    std::vector<SwRangeRedline*> aRedlines(rTable.size());
-    for (size_t nIndex = 0; nIndex < rTable.size(); ++nIndex)
-    {
-        aRedlines[nIndex] = rTable[nIndex];
-    }
+    std::vector<SwRangeRedline*> aRedlines(rTable.begin(), rTable.end());
 
     for (size_t nIndex = 0; nIndex < aRedlines.size(); ++nIndex)
     {

Reply via email to