summaryrefslogtreecommitdiff
path: root/xmloff/source/draw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-20 15:55:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-20 16:57:05 +0200
commit7ae43f63aad28c2cabb7cde6ea308055133fbde8 (patch)
tree26b244b295d518419243b7b7dd99429c5b796309 /xmloff/source/draw
parent3e52f67c49b5cde7661d0cca2ea72ff10d55a12c (diff)
loplugin:constvars in writerfilter..xmlscript
Change-Id: I5a318632bcc575ea7e476ec0fb74c905b252ecdd Reviewed-on: https://gerrit.libreoffice.org/77829 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/draw')
-rw-r--r--xmloff/source/draw/sdxmlexp.cxx4
-rw-r--r--xmloff/source/draw/shapeimport.cxx2
-rw-r--r--xmloff/source/draw/ximpcustomshape.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/draw/sdxmlexp.cxx b/xmloff/source/draw/sdxmlexp.cxx
index 9e75edacafaa..8f4e09d431a0 100644
--- a/xmloff/source/draw/sdxmlexp.cxx
+++ b/xmloff/source/draw/sdxmlexp.cxx
@@ -716,7 +716,7 @@ bool SdXMLExport::ImpPrepAutoLayoutInfo(const Reference<XDrawPage>& xPage, OUStr
void SdXMLExport::ImpWriteAutoLayoutInfos()
{
- for(auto & pInfo : mvAutoLayoutInfoList)
+ for(const auto & pInfo : mvAutoLayoutInfoList)
{
if(pInfo)
{
@@ -1289,7 +1289,7 @@ ImpXMLEXPPageMasterInfo* SdXMLExport::ImpGetPageMasterInfoByName(const OUString&
{
if(!rName.isEmpty())
{
- for(auto & pInfo : mvPageMasterInfoList)
+ for(const auto & pInfo : mvPageMasterInfoList)
{
if(pInfo)
{
diff --git a/xmloff/source/draw/shapeimport.cxx b/xmloff/source/draw/shapeimport.cxx
index bc7851676f6a..423327c8b0b9 100644
--- a/xmloff/source/draw/shapeimport.cxx
+++ b/xmloff/source/draw/shapeimport.cxx
@@ -803,7 +803,7 @@ void ShapeSortContext::popGroupAndSort()
// this is the current index, all shapes before that
// index are finished
sal_Int32 nIndex = 0;
- for (ZOrderHint& rHint : maZOrderList)
+ for (const ZOrderHint& rHint : maZOrderList)
{
for (vector<ZOrderHint>::iterator aIt = maUnsortedList.begin(); aIt != maUnsortedList.end() && nIndex < rHint.nShould; )
{
diff --git a/xmloff/source/draw/ximpcustomshape.cxx b/xmloff/source/draw/ximpcustomshape.cxx
index 19539ab5b2a8..f484ac7b6664 100644
--- a/xmloff/source/draw/ximpcustomshape.cxx
+++ b/xmloff/source/draw/ximpcustomshape.cxx
@@ -1227,7 +1227,7 @@ void XMLEnhancedCustomShapeContext::EndElement()
}
// Path
- for ( beans::PropertyValue& rPathItem : maPath )
+ for ( const beans::PropertyValue& rPathItem : maPath )
{
switch( EASGet( rPathItem.Name ) )
{