From 21997319a3d656b2d552b70089f824ead568f09e Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 26 Mar 2015 15:27:26 +0100 Subject: [PATCH] const_cast: convert some C-style casts and remove some redundant ones Change-Id: I43f7a4c372502214c6f36413077d686921dba73b --- basctl/source/basicide/basides1.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/basctl/source/basicide/basides1.cxx b/basctl/source/basicide/basides1.cxx index 4d1bedb402e8..eabb0a24b03d 100644 --- a/basctl/source/basicide/basides1.cxx +++ b/basctl/source/basicide/basides1.cxx @@ -275,7 +275,7 @@ void Shell::ExecuteGlobal( SfxRequest& rReq ) { DBG_ASSERT( rReq.GetArgs(), "arguments expected" ); const SfxMacroInfoItem& rInfo = static_cast(rReq.GetArgs()->Get(SID_BASICIDE_ARG_MACROINFO )); - BasicManager* pBasMgr = (BasicManager*)rInfo.GetBasicManager(); + BasicManager* pBasMgr = const_cast(rInfo.GetBasicManager()); DBG_ASSERT( pBasMgr, "Nichts selektiert im Basic-Baum ?" ); ScriptDocument aDocument( ScriptDocument::getDocumentForBasicManager( pBasMgr ) ); @@ -394,7 +394,7 @@ void Shell::ExecuteGlobal( SfxRequest& rReq ) { DBG_ASSERT( rReq.GetArgs(), "arguments expected" ); const SfxMacroInfoItem& rInfo = static_cast(rReq.GetArgs()->Get(SID_BASICIDE_ARG_MACROINFO )); - BasicManager* pBasMgr = (BasicManager*)rInfo.GetBasicManager(); + BasicManager* pBasMgr = const_cast(rInfo.GetBasicManager()); DBG_ASSERT( pBasMgr, "Store source: Kein BasMgr?" ); ScriptDocument aDocument( ScriptDocument::getDocumentForBasicManager( pBasMgr ) ); ModulWindow* pWin = FindBasWin( aDocument, rInfo.GetLib(), rInfo.GetModule(), false, true );