From 3a1a448ac4a04137705ea0aaf0163358fd2e5549 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 15 Sep 2021 10:58:18 +0200 Subject: loplugin:constvars Change-Id: I9b35d6333afa6b305bf73fc55a7e60c8365674e9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122134 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sfx2/source/sidebar/Deck.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sfx2/source/sidebar') 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(); -- cgit