sw/source/core/table/swtable.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 5d2be45a788c450e6f914eea8c3b74d214edaccd
Author:     mostafa-elsharnoby <mostafaelsharn...@gmail.com>
AuthorDate: Tue Jan 24 02:04:15 2023 +0200
Commit:     Hossein <hoss...@libreoffice.org>
CommitDate: Thu Mar 2 12:01:15 2023 +0000

    tdf#145538 Use range based for loops
    
    Change-Id: Iabbb29877c8dd2f7115b7466e9560e6296a894e5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146046
    Tested-by: Jenkins
    Reviewed-by: Hossein <hoss...@libreoffice.org>

diff --git a/sw/source/core/table/swtable.cxx b/sw/source/core/table/swtable.cxx
index 621a0e3083ab..aa95d085ae0e 100644
--- a/sw/source/core/table/swtable.cxx
+++ b/sw/source/core/table/swtable.cxx
@@ -265,8 +265,8 @@ static void lcl_ModifyBoxes( SwTableBoxes &rBoxes, const 
tools::Long nOld,
 static void lcl_ModifyLines( SwTableLines &rLines, const tools::Long nOld,
                          const tools::Long nNew, std::vector<SwFormat*>& 
rFormatArr, const bool bCheckSum )
 {
-    for ( size_t i = 0; i < rLines.size(); ++i )
-        ::lcl_ModifyBoxes( rLines[i]->GetTabBoxes(), nOld, nNew, rFormatArr );
+    for ( auto &rLine : rLines)
+        ::lcl_ModifyBoxes( rLine->GetTabBoxes(), nOld, nNew, rFormatArr );
     if( bCheckSum )
     {
         for(SwFormat* pFormat : rFormatArr)

Reply via email to