diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-01 15:30:09 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-02 07:57:38 +0200 |
commit | 7607b608d626267011d6cd00080cb608b0badf97 (patch) | |
tree | d6cbf145e722c26b490e6cee1cd1844f42545ef2 /framework/source/dispatch | |
parent | 88eda6e3f932c97e998343829acbc444d03f5167 (diff) |
loplugin:unuseddefaultparam in framework
Change-Id: I4c5baa6f524e3382794c4844b7444904cc38584a
Diffstat (limited to 'framework/source/dispatch')
-rw-r--r-- | framework/source/dispatch/menudispatcher.cxx | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/framework/source/dispatch/menudispatcher.cxx b/framework/source/dispatch/menudispatcher.cxx index 90c9e6333d7d..739b30cb336c 100644 --- a/framework/source/dispatch/menudispatcher.cxx +++ b/framework/source/dispatch/menudispatcher.cxx @@ -209,7 +209,7 @@ void MenuDispatcher::impl_setAccelerators( Menu* pMenu, const Accelerator& aAcce } } -bool MenuDispatcher::impl_setMenuBar( MenuBar* pMenuBar, bool bMenuFromResource ) +bool MenuDispatcher::impl_setMenuBar( MenuBar* pMenuBar ) { uno::Reference< XFrame > xFrame( m_xOwnerWeak.get(), UNO_QUERY ); if ( xFrame.is() ) @@ -261,14 +261,7 @@ bool MenuDispatcher::impl_setMenuBar( MenuBar* pMenuBar, bool bMenuFromResource } // set new menu on our system window and create new menu manager - if ( bMenuFromResource ) - { - m_pMenuManager = new MenuManager( m_xContext, xFrame, pMenuBar, true, false ); - } - else - { - m_pMenuManager = new MenuManager( m_xContext, xFrame, pMenuBar, true, true ); - } + m_pMenuManager = new MenuManager( m_xContext, xFrame, pMenuBar, true, true ); pSysWindow->SetMenuBar( pMenuBar ); } |