diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-02 10:33:43 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-03 15:20:03 +0200 |
commit | 0abf268f3893ecc716088aa399e81a1ef31e13d2 (patch) | |
tree | b3b467a7841a85bf30edc0fed73e539e7fcf33a6 /sfx2/source/menu/mnumgr.cxx | |
parent | 7d7b289da49ccd7979f650222bfb669cd6b623de (diff) |
loplugin: cstylecast
Change-Id: I011a0eae37d01606d28c00f8ab3839f20bf309ce
Diffstat (limited to 'sfx2/source/menu/mnumgr.cxx')
-rw-r--r-- | sfx2/source/menu/mnumgr.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/menu/mnumgr.cxx b/sfx2/source/menu/mnumgr.cxx index 55eb9884c7b3..6ff82a83a061 100644 --- a/sfx2/source/menu/mnumgr.cxx +++ b/sfx2/source/menu/mnumgr.cxx @@ -254,7 +254,7 @@ void SfxPopupMenuManager::RemoveDisabledEntries() sal_uInt16 SfxPopupMenuManager::Execute( const Point& rPos, vcl::Window* pWindow ) { - sal_uInt16 nVal = ( (PopupMenu*) GetMenu()->GetSVMenu() )->Execute( pWindow, rPos ); + sal_uInt16 nVal = static_cast<PopupMenu*>( GetMenu()->GetSVMenu() )->Execute( pWindow, rPos ); delete pStaticThesSubMenu; pStaticThesSubMenu = NULL; return nVal; } @@ -319,7 +319,7 @@ SfxPopupMenuManager* SfxPopupMenuManager::Popup( const ResId& rResId, SfxViewFra if ( pMenu ) { delete pSVMenu; - pSVMenu = (PopupMenu*) pMenu; + pSVMenu = static_cast<PopupMenu*>( pMenu ); } SfxPopupMenuManager* aMgr = new SfxPopupMenuManager( pSVMenu, pFrame->GetBindings()); @@ -369,7 +369,7 @@ void SfxPopupMenuManager::ExecutePopup( const ResId& rResId, SfxViewFrame* pFram if ( pMenu ) { delete pSVMenu; - pSVMenu = (PopupMenu*) pMenu; + pSVMenu = static_cast<PopupMenu*>( pMenu ); } SfxPopupMenuManager aPop( pSVMenu, pFrame->GetBindings() ); |