diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-15 10:58:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-15 12:43:21 +0200 |
commit | 3a1a448ac4a04137705ea0aaf0163358fd2e5549 (patch) | |
tree | 0a7eeeebda959b1b8e7e1af99453c3f8b0541852 /xmloff | |
parent | 88a6ac9f75a4375b72111af5a3e004bef4226455 (diff) |
loplugin:constvars
Change-Id: I9b35d6333afa6b305bf73fc55a7e60c8365674e9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122134
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/chart/SchXMLExport.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/chart/SchXMLPlotAreaContext.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/draw/shapeimport.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx index 65510e036ac2..68e23a5616a9 100644 --- a/xmloff/source/chart/SchXMLExport.cxx +++ b/xmloff/source/chart/SchXMLExport.cxx @@ -3646,7 +3646,7 @@ void SchXMLExportHelper_Impl::exportDataPoints( mrExport.AddAttribute( XML_NAMESPACE_CHART, XML_REPEATED, OUString::number( aLastPoint.mnRepeat )); - for (auto& deletedLegendEntry : deletedLegendEntriesSeq) + for (const auto& deletedLegendEntry : std::as_const(deletedLegendEntriesSeq)) { if (nIndex == deletedLegendEntry) { @@ -3672,7 +3672,7 @@ void SchXMLExportHelper_Impl::exportDataPoints( mrExport.AddAttribute( XML_NAMESPACE_CHART, XML_REPEATED, OUString::number( aLastPoint.mnRepeat )); - for (auto& deletedLegendEntry : deletedLegendEntriesSeq) + for (const auto& deletedLegendEntry : std::as_const(deletedLegendEntriesSeq)) { if (nIndex == deletedLegendEntry) { diff --git a/xmloff/source/chart/SchXMLPlotAreaContext.cxx b/xmloff/source/chart/SchXMLPlotAreaContext.cxx index a66b05d0661b..3d2b9495c643 100644 --- a/xmloff/source/chart/SchXMLPlotAreaContext.cxx +++ b/xmloff/source/chart/SchXMLPlotAreaContext.cxx @@ -757,7 +757,7 @@ void SchXMLDataPointContext::startFastElement (sal_Int32 /*Element*/, Reference<beans::XPropertySet> xSeriesProp(mDataPoint.m_xSeries, uno::UNO_QUERY); xSeriesProp->getPropertyValue("DeletedLegendEntries") >>= deletedLegendEntriesSeq; std::vector<sal_Int32> deletedLegendEntries; - for (auto& deletedLegendEntry : deletedLegendEntriesSeq) + for (const auto& deletedLegendEntry : std::as_const(deletedLegendEntriesSeq)) { deletedLegendEntries.push_back(deletedLegendEntry); } diff --git a/xmloff/source/draw/shapeimport.cxx b/xmloff/source/draw/shapeimport.cxx index c338c15c724a..f0886de65d2a 100644 --- a/xmloff/source/draw/shapeimport.cxx +++ b/xmloff/source/draw/shapeimport.cxx @@ -641,7 +641,7 @@ void ShapeGroupContext::popGroupAndPostProcess() uno::Sequence<sal_Int32> aNewOrder(maZOrderList.size() + maUnsortedList.size()); sal_Int32 nIndex = 0; - for (ZOrderHint& rHint : maZOrderList) + for (const ZOrderHint& rHint : maZOrderList) { // fill in the gaps from unordered list for (vector<ZOrderHint>::iterator aIt = maUnsortedList.begin(); aIt != maUnsortedList.end() && nIndex < rHint.nShould; ) |