diff options
author | Arnaud Versini <arnaud.versini@gmail.com> | 2014-03-02 16:06:40 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-03 09:23:34 -0600 |
commit | 7ac4babfd6eabc51262560a5caa846d86f79a6c0 (patch) | |
tree | 4498956c6ed4b6072ec4d18bb876da059372e546 /sfx2/source/menu/virtmenu.cxx | |
parent | 7963d2b0f6fe006c215607eda1c51acf1d7273b5 (diff) |
SFX2 : Remove usage of DBG_CTOR and DBG_DTOR.
Valgrind is capable of detecting such bugs. No need for extra macros.
Change-Id: I35a9403da152ea2b637c0235d776c7789e2ef207
Reviewed-on: https://gerrit.libreoffice.org/8420
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source/menu/virtmenu.cxx')
-rw-r--r-- | sfx2/source/menu/virtmenu.cxx | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sfx2/source/menu/virtmenu.cxx b/sfx2/source/menu/virtmenu.cxx index 9309f6b94884..d2a1d81a5854 100644 --- a/sfx2/source/menu/virtmenu.cxx +++ b/sfx2/source/menu/virtmenu.cxx @@ -179,7 +179,6 @@ SfxVirtualMenu::SfxVirtualMenu( sal_uInt16 nOwnId, bHelpInitialized( bWithHelp ), bIsAddonPopupMenu( bIsAddonMenu ) { - DBG_CTOR(SfxVirtualMenu, 0); pSVMenu = &rMenu; bResCtor = bRes; @@ -212,7 +211,6 @@ SfxVirtualMenu::SfxVirtualMenu( Menu *pStarViewMenu, sal_Bool bWithHelp, bHelpInitialized( bWithHelp ), bIsAddonPopupMenu( bIsAddonMenu ) { - DBG_CTOR(SfxVirtualMenu, 0); pSVMenu = pStarViewMenu; @@ -241,7 +239,6 @@ SfxVirtualMenu::SfxVirtualMenu( Menu *pStarViewMenu, sal_Bool bWithHelp, SfxVirtualMenu::~SfxVirtualMenu() { - DBG_DTOR(SfxVirtualMenu, 0); DELETEZ( pImageControl ); SvtMenuOptions().RemoveListenerLink( LINK( this, SfxVirtualMenu, SettingsChanged ) ); @@ -288,7 +285,6 @@ SfxVirtualMenu::~SfxVirtualMenu() void SfxVirtualMenu::CreateFromSVMenu() { - DBG_CHKTHIS(SfxVirtualMenu, 0); // Merge Addon popup menus into the SV Menu SfxViewFrame* pViewFrame = pBindings->GetDispatcher()->GetFrame(); @@ -495,7 +491,6 @@ void SfxVirtualMenu::CreateFromSVMenu() IMPL_LINK_NOARG( SfxVirtualMenu, Highlight ) { - DBG_CHKTHIS(SfxVirtualMenu, 0); return sal_True; } @@ -787,7 +782,6 @@ void SfxVirtualMenu::InsertAddOnsMenuItem( Menu* pMenu ) IMPL_LINK( SfxVirtualMenu, Activate, Menu *, pMenu ) { - DBG_CHKTHIS(SfxVirtualMenu, 0); DBG_OUTF( ("SfxVirtualMenu %lx activated %lx, own %lx", this, pMenu, pSVMenu)); // MI: for what was it still good for? @@ -986,7 +980,6 @@ IMPL_LINK( SfxVirtualMenu, Select, Menu *, pMenu ) Menu* SfxVirtualMenu::GetSVMenu() const { - DBG_CHKTHIS(SfxVirtualMenu, 0); return pSVMenu; } @@ -997,7 +990,6 @@ Menu* SfxVirtualMenu::GetSVMenu() const void SfxVirtualMenu::CheckItem( sal_uInt16 nItemId, sal_Bool bCheck ) { - DBG_CHKTHIS(SfxVirtualMenu, 0); DBG_ASSERT( this != 0, ""); DBG_ASSERT( pSVMenu != 0, "" ); if (pSVMenu->GetItemPos( nItemId ) != MENU_ITEM_NOTFOUND ) @@ -1009,7 +1001,6 @@ void SfxVirtualMenu::CheckItem( sal_uInt16 nItemId, sal_Bool bCheck ) void SfxVirtualMenu::EnableItem( sal_uInt16 nItemId, sal_Bool bEnable ) { - DBG_CHKTHIS(SfxVirtualMenu, 0); DBG_ASSERT( this != 0, ""); DBG_ASSERT( pSVMenu != 0, "" ); @@ -1022,7 +1013,6 @@ void SfxVirtualMenu::EnableItem( sal_uInt16 nItemId, sal_Bool bEnable ) void SfxVirtualMenu::SetItemText( sal_uInt16 nItemId, const OUString& rText ) { - DBG_CHKTHIS(SfxVirtualMenu, 0); DBG_ASSERT( this != 0, ""); DBG_ASSERT( pSVMenu != 0, "" ); if (pSVMenu->GetItemPos( nItemId ) != MENU_ITEM_NOTFOUND ) @@ -1034,7 +1024,6 @@ void SfxVirtualMenu::SetItemText( sal_uInt16 nItemId, const OUString& rText ) void SfxVirtualMenu::SetPopupMenu( sal_uInt16 nItemId, PopupMenu *pMenu ) { - DBG_CHKTHIS(SfxVirtualMenu, 0); if (pSVMenu->GetItemPos( nItemId ) != MENU_ITEM_NOTFOUND ) GetSVMenu()->SetPopupMenu( nItemId, pMenu ); @@ -1052,7 +1041,6 @@ void SfxVirtualMenu::SetPopupMenu( sal_uInt16 nItemId, PopupMenu *pMenu ) void SfxVirtualMenu::InitPopup( sal_uInt16 nPos, sal_Bool /*bOLE*/ ) { - DBG_CHKTHIS(SfxVirtualMenu, 0); sal_uInt16 nSID = pSVMenu->GetItemId(nPos); PopupMenu *pMenu = pSVMenu->GetPopupMenu( nSID ); |