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 /sfx2 | |
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 'sfx2')
-rw-r--r-- | sfx2/source/control/listview.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/sidebar/Deck.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/control/listview.cxx b/sfx2/source/control/listview.cxx index 6aa657e7e7e4..725d7564bbe8 100644 --- a/sfx2/source/control/listview.cxx +++ b/sfx2/source/control/listview.cxx @@ -285,7 +285,7 @@ void ListView::clearListView() IMPL_LINK(ListView, QueryTooltipHdl, const weld::TreeIter&, rIter, OUString) { OUString sId = mxTreeView->get_id(rIter); - for (auto& pItem : mListViewItems) + for (const auto& pItem : mListViewItems) { if (pItem->maId == sId) return pItem->maDisplayPath; diff --git a/sfx2/source/sidebar/Deck.cxx b/sfx2/source/sidebar/Deck.cxx index 2267b222d82e..450cfe57fe19 100644 --- a/sfx2/source/sidebar/Deck.cxx +++ b/sfx2/source/sidebar/Deck.cxx @@ -138,7 +138,7 @@ void Deck::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter) rJsonWriter.put("visible", false); auto childrenNode = rJsonWriter.startArray("children"); - for (auto &it : maPanels) + for (const auto &it : maPanels) { // collapse the panel itself out auto xContent = it->GetContents(); |