summaryrefslogtreecommitdiff
path: root/writerfilter/source/dmapper/PageBordersHandler.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-12 10:07:50 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-13 08:09:03 +0000
commit96fab0513215cc416e96e1b2089466afd0d2791c (patch)
tree7c03bd56b0c3744f0560c05ebb2f422155e64543 /writerfilter/source/dmapper/PageBordersHandler.cxx
parentb3d5da663ff09c72455a8d3bf9be7c00220271bb (diff)
clang-tidy modernize-loop-convert in writerfilter to xmlsecurity
Change-Id: I334411c6b57c028ffb41b5deb72002f9d54038c3 Reviewed-on: https://gerrit.libreoffice.org/24923 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'writerfilter/source/dmapper/PageBordersHandler.cxx')
-rw-r--r--writerfilter/source/dmapper/PageBordersHandler.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/writerfilter/source/dmapper/PageBordersHandler.cxx b/writerfilter/source/dmapper/PageBordersHandler.cxx
index a140a754f648..f9fe9685692b 100644
--- a/writerfilter/source/dmapper/PageBordersHandler.cxx
+++ b/writerfilter/source/dmapper/PageBordersHandler.cxx
@@ -133,10 +133,9 @@ void PageBordersHandler::lcl_sprm( Sprm& rSprm )
void PageBordersHandler::SetBorders( SectionPropertyMap* pSectContext )
{
- for ( int i = 0, length = m_aBorders.size( ); i < length; i++ )
+ for (const PgBorder& rBorder : m_aBorders)
{
- PgBorder aBorder = m_aBorders[i];
- pSectContext->SetBorder( aBorder.m_ePos, aBorder.m_nDistance, aBorder.m_rLine, aBorder.m_bShadow );
+ pSectContext->SetBorder( rBorder.m_ePos, rBorder.m_nDistance, rBorder.m_rLine, rBorder.m_bShadow );
}
}