summaryrefslogtreecommitdiff
path: root/vcl/source/window/menu.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-04-04 15:33:20 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-04-04 17:13:21 +0100
commit1a3c99f2c31dbc4dd6b3b5788ea0b49a34bea2c6 (patch)
treea2be3e4b33ed214e331b013983643fc8cd488cbf /vcl/source/window/menu.cxx
parent9f1be6c65210e600baee5c63480df58e8b8ce7b1 (diff)
callcatcher: update unusedcode
mostly changed due to loplugin:constantfunction Change-Id: Ib677c78db256f8032a99b3f02a3e363fee68ebcc
Diffstat (limited to 'vcl/source/window/menu.cxx')
-rw-r--r--vcl/source/window/menu.cxx11
1 files changed, 4 insertions, 7 deletions
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: */