From 1a3c99f2c31dbc4dd6b3b5788ea0b49a34bea2c6 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 4 Apr 2015 15:33:20 +0100 Subject: callcatcher: update unusedcode mostly changed due to loplugin:constantfunction Change-Id: Ib677c78db256f8032a99b3f02a3e363fee68ebcc --- vcl/source/window/menu.cxx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'vcl/source/window/menu.cxx') diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx index b1cc88b06c87..d32c86f3f07c 100644 --- a/vcl/source/window/menu.cxx +++ b/vcl/source/window/menu.cxx @@ -3154,21 +3154,18 @@ ImplMenuDelData::~ImplMenuDelData() const_cast< Menu* >( mpMenu )->ImplRemoveDel( *this ); } -namespace vcl -{ - MenuInvalidator::MenuInvalidator() {}; - +namespace vcl { namespace MenuInvalidator { static VclEventListeners2* pMenuInvalidateListeners = NULL; - VclEventListeners2* MenuInvalidator::GetMenuInvalidateListeners() + VclEventListeners2* GetMenuInvalidateListeners() { if(!pMenuInvalidateListeners) pMenuInvalidateListeners = new VclEventListeners2(); return pMenuInvalidateListeners; } - void MenuInvalidator::Invalidated() + void Invalidated() { VclSimpleEvent aEvent(0); GetMenuInvalidateListeners()->callListeners(&aEvent); }; -} +} } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit