summaryrefslogtreecommitdiff
path: root/sw/source/filter/html/htmltabw.cxx
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2018-11-03 15:10:04 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-03 16:00:36 +0100
commit4284f618557992fdf12574f8fd014be76ec9fffc (patch)
treefac74828b9a4139d1f74087443c3fcc0b8a1363f /sw/source/filter/html/htmltabw.cxx
parentf575cf3320684efe7db9844da89a5ebdb3083498 (diff)
Simplify containers iterations in sw/source/filter
Use range-based loop or replace with STL functions. Change-Id: Ifffb7ba08b3a9950ee076558ec4048b0788a38c8 Reviewed-on: https://gerrit.libreoffice.org/62806 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/html/htmltabw.cxx')
-rw-r--r--sw/source/filter/html/htmltabw.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/sw/source/filter/html/htmltabw.cxx b/sw/source/filter/html/htmltabw.cxx
index a2e93d6bd9f8..600d27c5dc72 100644
--- a/sw/source/filter/html/htmltabw.cxx
+++ b/sw/source/filter/html/htmltabw.cxx
@@ -196,10 +196,9 @@ static bool lcl_TableBox_HasTabBorders( const SwTableBox* pBox, bool *pBorders )
if( !pBox->GetSttNd() )
{
- for( SwTableLines::const_iterator it = pBox->GetTabLines().begin();
- it != pBox->GetTabLines().end(); ++it)
+ for( const auto& rpLine : pBox->GetTabLines() )
{
- if ( lcl_TableLine_HasTabBorders( *it, pBorders ) )
+ if ( lcl_TableLine_HasTabBorders( rpLine, pBorders ) )
break;
}
}
@@ -220,10 +219,9 @@ static bool lcl_TableLine_HasTabBorders( const SwTableLine* pLine, bool *pBorder
if( *pBorders )
return false;
- for( SwTableBoxes::const_iterator it = pLine->GetTabBoxes().begin();
- it != pLine->GetTabBoxes().end(); ++it)
+ for( const auto& rpBox : pLine->GetTabBoxes() )
{
- if ( lcl_TableBox_HasTabBorders( *it, pBorders ) )
+ if ( lcl_TableBox_HasTabBorders( rpBox, pBorders ) )
break;
}
return !*pBorders;