summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-20 14:01:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-20 15:32:08 +0200
commit8d54827762e2a6702a16b67724a6a5f393d72598 (patch)
tree76056d33a92776d8971b78c70c5f362ef719a494 /sdext
parent648990692c8253e3843c4c5954940e8b893d5f3e (diff)
loplugin:constvars in sdext..sfx2
Change-Id: Id9b05387b7b87d3af5e646e867e6ca9fda0711ce Reviewed-on: https://gerrit.libreoffice.org/77806 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/pdfimport/tree/drawtreevisiting.cxx2
-rw-r--r--sdext/source/pdfimport/tree/genericelements.cxx2
-rw-r--r--sdext/source/pdfimport/tree/writertreevisiting.cxx6
3 files changed, 5 insertions, 5 deletions
diff --git a/sdext/source/pdfimport/tree/drawtreevisiting.cxx b/sdext/source/pdfimport/tree/drawtreevisiting.cxx
index 07e615f693b1..3985d07fdeb8 100644
--- a/sdext/source/pdfimport/tree/drawtreevisiting.cxx
+++ b/sdext/source/pdfimport/tree/drawtreevisiting.cxx
@@ -490,7 +490,7 @@ void DrawXmlOptimizer::visit( PageElement& elem, const std::list< std::unique_pt
// adjust line height and text items
fCurLineHeight = 0.0;
nCurLineElements = 0;
- for( auto& rxChild : pCurPara->Children )
+ for( const auto& rxChild : pCurPara->Children )
{
TextElement* pTestText = dynamic_cast<TextElement*>(rxChild.get());
if( pTestText )
diff --git a/sdext/source/pdfimport/tree/genericelements.cxx b/sdext/source/pdfimport/tree/genericelements.cxx
index 152366d6b4bf..c26f0f816222 100644
--- a/sdext/source/pdfimport/tree/genericelements.cxx
+++ b/sdext/source/pdfimport/tree/genericelements.cxx
@@ -375,7 +375,7 @@ void PageElement::resolveUnderlines( PDFIProcessor const & rProc )
u_y = r_x; r_x = l_x; l_x = u_y;
}
u_y = aPoly.getB2DPoint(0).getY();
- for( auto& rxChild : Children )
+ for( const auto& rxChild : Children )
{
Element* pEle = rxChild.get();
if( pEle->y <= u_y && pEle->y + pEle->h*1.1 >= u_y )
diff --git a/sdext/source/pdfimport/tree/writertreevisiting.cxx b/sdext/source/pdfimport/tree/writertreevisiting.cxx
index 1025d3fb74c0..4d089b3d3230 100644
--- a/sdext/source/pdfimport/tree/writertreevisiting.cxx
+++ b/sdext/source/pdfimport/tree/writertreevisiting.cxx
@@ -321,7 +321,7 @@ void WriterXmlEmitter::visit( DocumentElement& elem, const std::list< std::uniqu
m_rEmitContext.rEmitter.beginTag( "office:body", PropertyMap() );
m_rEmitContext.rEmitter.beginTag( "office:text", PropertyMap() );
- for( auto& rxChild : elem.Children )
+ for( const auto& rxChild : elem.Children )
{
PageElement* pPage = dynamic_cast<PageElement*>(rxChild.get());
if( pPage )
@@ -505,7 +505,7 @@ void WriterXmlOptimizer::visit( PageElement& elem, const std::list< std::unique_
// adjust line height and text items
fCurLineHeight = 0.0;
nCurLineElements = 0;
- for( auto& rxChild : pCurPara->Children )
+ for( const auto& rxChild : pCurPara->Children )
{
TextElement* pTestText = dynamic_cast<TextElement*>(rxChild.get());
if( pTestText )
@@ -1085,7 +1085,7 @@ void WriterXmlFinalizer::visit( PageElement& elem, const std::list< std::unique_
elem.RightMargin = 0;
// first element should be a paragraph
ParagraphElement* pFirstPara = nullptr;
- for( auto& rxChild : elem.Children )
+ for( const auto& rxChild : elem.Children )
{
if( dynamic_cast<ParagraphElement*>( rxChild.get() ) )
{