summaryrefslogtreecommitdiff
path: root/framework/source/uielement/macrosmenucontroller.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-01 15:16:01 +0200
committerNoel Grandin <noel@peralex.com>2014-10-02 07:37:19 +0200
commit1777c425fef6420c37102dad9b7539424bb47d10 (patch)
treead167f3bfb8447238435117b1423ddb71e806112 /framework/source/uielement/macrosmenucontroller.cxx
parente54d93ac344f9061897f768fd09375fe210f34e0 (diff)
loplugin: cstylecast
Change-Id: I4a8786f335b5f9a14116c546d32f1ff6cff99930
Diffstat (limited to 'framework/source/uielement/macrosmenucontroller.cxx')
-rw-r--r--framework/source/uielement/macrosmenucontroller.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/uielement/macrosmenucontroller.cxx b/framework/source/uielement/macrosmenucontroller.cxx
index 8801667efddb..2c168d1e1833 100644
--- a/framework/source/uielement/macrosmenucontroller.cxx
+++ b/framework/source/uielement/macrosmenucontroller.cxx
@@ -71,14 +71,14 @@ MacrosMenuController::~MacrosMenuController()
// private function
void MacrosMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu >& rPopupMenu )
{
- VCLXPopupMenu* pVCLPopupMenu = (VCLXPopupMenu *)VCLXMenu::GetImplementation( rPopupMenu );
+ VCLXPopupMenu* pVCLPopupMenu = static_cast<VCLXPopupMenu *>(VCLXMenu::GetImplementation( rPopupMenu ));
PopupMenu* pPopupMenu = 0;
SolarMutexGuard aSolarMutexGuard;
resetPopupMenu( rPopupMenu );
if ( pVCLPopupMenu )
- pPopupMenu = (PopupMenu *)pVCLPopupMenu->GetMenu();
+ pPopupMenu = static_cast<PopupMenu *>(pVCLPopupMenu->GetMenu());
if (!pPopupMenu)
return;