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 /sc/source | |
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 'sc/source')
-rw-r--r-- | sc/source/core/tool/chartpos.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/cctrl/checklistmenu.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/tool/chartpos.cxx b/sc/source/core/tool/chartpos.cxx index 6ba4a4609f6b..4c93be995b29 100644 --- a/sc/source/core/tool/chartpos.cxx +++ b/sc/source/core/tool/chartpos.cxx @@ -424,7 +424,7 @@ void ScChartPositioner::CreatePositionMap() { // fill gaps with Dummies, first column is master RowMap& rFirstCol = aColMap.begin()->second; - for ( auto& it1 : rFirstCol ) + for ( const auto& it1 : rFirstCol ) { sal_uLong nKey = it1.first; for (ColumnMap::iterator it2 = ++aColMap.begin(); it2 != aColMap.end(); ++it2 ) diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx index 60e57b59f72e..c6ef7d8bf9b6 100644 --- a/sc/source/ui/cctrl/checklistmenu.cxx +++ b/sc/source/ui/cctrl/checklistmenu.cxx @@ -1296,7 +1296,7 @@ size_t ScCheckListMenuControl::initMembers(int nMaxMemberWidth) mpChecks->thaw(); - for (auto& rRow : aExpandRows) + for (const auto& rRow : aExpandRows) mpChecks->expand_row(*rRow); } |