diff options
author | David Tardon <dtardon@redhat.com> | 2010-12-13 19:04:05 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2010-12-14 20:56:32 +0100 |
commit | f44b8e5fd1045add2d32b2aac43ff64ac6a1744c (patch) | |
tree | b6c8a60a00a7a65d9448764621d97db8cf964b0d /sfx2/source/menu/mnuitem.cxx | |
parent | 7931d3482795f1a7a5310d994703faa56750d99b (diff) |
purge comments
Diffstat (limited to 'sfx2/source/menu/mnuitem.cxx')
-rw-r--r-- | sfx2/source/menu/mnuitem.cxx | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/sfx2/source/menu/mnuitem.cxx b/sfx2/source/menu/mnuitem.cxx index bc3a13dfedf1..8ba182f98126 100644 --- a/sfx2/source/menu/mnuitem.cxx +++ b/sfx2/source/menu/mnuitem.cxx @@ -189,8 +189,6 @@ SfxMenuControl::SfxMenuControl( BOOL bShowStrings ) //-------------------------------------------------------------------- -// ctor for array - SfxMenuControl::SfxMenuControl(): pOwnMenu(0), pSubMenu(0), @@ -219,8 +217,6 @@ SfxMenuControl::SfxMenuControl(USHORT nSlotId, SfxBindings& rBindings): //-------------------------------------------------------------------- -// dtor - SfxMenuControl::~SfxMenuControl() { if ( SfxMacroConfig::IsMacroSlot( GetId() ) ) @@ -244,7 +240,7 @@ void SfxMenuControl::StateChanged const SfxPoolItem* pState ) { - (void)nSID; //unused + (void)nSID; DBG_MEMTEST(); DBG_ASSERT( nSID == GetId(), "strange SID" ); DBG_ASSERT( pOwnMenu != 0, "setting state to dangling SfxMenuControl" ); @@ -269,19 +265,13 @@ void SfxMenuControl::StateChanged if ( !bIsObjMenu ) pOwnMenu->CheckItem( GetId(), FALSE ); - // SetItemText flackert in MenuBar insbes. unter OS/2 (Bug #20658) - if ( // !bIsObjMenu && nicht wegen "Format/Datenbank" - pOwnMenu->GetSVMenu()->GetItemText( GetId() ) != GetTitle() ) + if ( pOwnMenu->GetSVMenu()->GetItemText( GetId() ) != GetTitle() ) { DBG_WARNING("Title of menu item changed - please check if this needs correction!"); - // pOwnMenu->SetItemText( GetId(), GetTitle() ); } return; } - // ggf. das alte Enum-Menu entfernen/loeschen - //! delete pOwnMenu->GetMenu().ChangePopupMenu( GetId(), 0 ); - bool bCheck = false; if ( pState->ISA(SfxBoolItem) ) { |