diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-11-14 10:45:38 +0000 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2012-11-14 13:53:01 +0100 |
commit | 041f2fb1059d8ab02abffa0972dad1400a1aa584 (patch) | |
tree | 79acdc5b45d5ac634762d1947707373670d8d5e5 /vcl | |
parent | 6bea834b4a4cc50b5eb3d53cf685ecb5e5ada315 (diff) |
remove redundant commented code.
Change-Id: Ia311bdd148cf4c346c187d3b37964b12cded1212
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/salmenu.hxx | 2 | ||||
-rw-r--r-- | vcl/source/window/menu.cxx | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/vcl/inc/salmenu.hxx b/vcl/inc/salmenu.hxx index 5bea40140bba..77b1cd7986ef 100644 --- a/vcl/inc/salmenu.hxx +++ b/vcl/inc/salmenu.hxx @@ -82,7 +82,7 @@ public: virtual bool AddMenuBarButton( const SalMenuButtonItem& ); // return false if not implemented or failure virtual void RemoveMenuBarButton( sal_uInt16 nId ); - // FIXME: Make the other VCL native backends to work with these new methods. + // TODO: implement show/hide for the Win/Mac VCL native backends virtual void ShowItem( unsigned nPos, sal_Bool bShow ) { EnableItem( nPos, bShow ); } // return an empty rectangle if not implemented diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx index 7fbc21a6f48c..b6606b365999 100644 --- a/vcl/source/window/menu.cxx +++ b/vcl/source/window/menu.cxx @@ -1797,10 +1797,7 @@ void Menu::ShowItem( sal_uInt16 nItemId, sal_Bool bVisible ) pData->bVisible = bVisible; // update native menu - // as long as there is no support to hide native menu entries, we just disable them - // TODO: add support to show/hide native menu entries if( ImplGetSalMenu() ) -// ImplGetSalMenu()->EnableItem( nPos, bVisible ); ImplGetSalMenu()->ShowItem( nPos, bVisible ); } } |