summaryrefslogtreecommitdiff
path: root/writerfilter/source/rtftok/rtfdispatchflag.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-13 15:14:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-21 11:16:15 +0200
commit10280dabe2c1c47c3cddbc28fcd701deb618772f (patch)
treec5a619a444356a7ba62e2c356c88854a797b510c /writerfilter/source/rtftok/rtfdispatchflag.cxx
parent96b5152e0009ff0ea26200d9b6e4bd3e0e8073ed (diff)
loplugin:constvars, look for loop vars that can be const
Change-Id: I67ee714739800f3718f9d3facf57474cd564d855 Reviewed-on: https://gerrit.libreoffice.org/77415 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'writerfilter/source/rtftok/rtfdispatchflag.cxx')
-rw-r--r--writerfilter/source/rtftok/rtfdispatchflag.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/writerfilter/source/rtftok/rtfdispatchflag.cxx b/writerfilter/source/rtftok/rtfdispatchflag.cxx
index 45e5152e3f93..b8f2ad826862 100644
--- a/writerfilter/source/rtftok/rtfdispatchflag.cxx
+++ b/writerfilter/source/rtftok/rtfdispatchflag.cxx
@@ -1028,7 +1028,7 @@ RTFError RTFDocumentImpl::dispatchFlag(RTFKeyword nKeyword)
}
std::vector<beans::PropertyValue>& rPendingProperties
= m_aStates.top().getDrawingObject().getPendingProperties();
- for (auto& rPendingProperty : rPendingProperties)
+ for (const auto& rPendingProperty : rPendingProperties)
m_aStates.top().getDrawingObject().getPropertySet()->setPropertyValue(
rPendingProperty.Name, rPendingProperty.Value);
m_pSdrImport->resolveDhgt(m_aStates.top().getDrawingObject().getPropertySet(),