sw/source/core/edit/edredln.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
New commits: commit dc6e50ff7d8c35ad3efd90331fda5ca87b77cbcd Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Tue Mar 25 11:12:19 2025 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Tue Mar 25 11:50:41 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/+/183293 Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sw/source/core/edit/edredln.cxx b/sw/source/core/edit/edredln.cxx index 139f4105388f..f8d8bee10709 100644 --- a/sw/source/core/edit/edredln.cxx +++ b/sw/source/core/edit/edredln.cxx @@ -221,11 +221,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) {