From 5c23459245f566831383934dd64d19e002bfcfcb Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 6 Mar 2019 11:05:49 +0200 Subject: new loplugin constvars detect static variables that can be made const. Thanks to mike kaganski for suggesting this. Here I introduce a new plugin feature - using markers in nearby comments to disable the plugin for specific vars. Some of this stuff was old debugging code. I removed the stuff that was older than 5 years. Change-Id: I6ec7742a7fdadf28fd128b592fcdf6da8257585c Reviewed-on: https://gerrit.libreoffice.org/68807 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/source/window/layout.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vcl/source/window/layout.cxx') diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx index 6f30a230b43a..33f70be753c9 100644 --- a/vcl/source/window/layout.cxx +++ b/vcl/source/window/layout.cxx @@ -222,8 +222,8 @@ void VclContainer::Command(const CommandEvent& rCEvt) if (bVisibleChildren) { - static bool bAddButtonsToMenu(true); - static bool bAddScreenshotButtonToMenu(true); + static bool bAddButtonsToMenu(true); // loplugin:constvars:ignore + static bool bAddScreenshotButtonToMenu(true); // loplugin:constvars:ignore if (bAddButtonsToMenu || bAddScreenshotButtonToMenu) { -- cgit v1.2.3