summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-26 15:27:26 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-26 15:33:28 +0100
commit21997319a3d656b2d552b70089f824ead568f09e (patch)
tree7a63a5674eb7df1a3ac1e4ed0c2ec6c57bfefeba /basctl
parent69c2825708d1e78225ad2f515b792734443d8247 (diff)
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: I43f7a4c372502214c6f36413077d686921dba73b
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/basides1.cxx4
1 files 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<const SfxMacroInfoItem&>(rReq.GetArgs()->Get(SID_BASICIDE_ARG_MACROINFO ));
- BasicManager* pBasMgr = (BasicManager*)rInfo.GetBasicManager();
+ BasicManager* pBasMgr = const_cast<BasicManager*>(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<const SfxMacroInfoItem&>(rReq.GetArgs()->Get(SID_BASICIDE_ARG_MACROINFO ));
- BasicManager* pBasMgr = (BasicManager*)rInfo.GetBasicManager();
+ BasicManager* pBasMgr = const_cast<BasicManager*>(rInfo.GetBasicManager());
DBG_ASSERT( pBasMgr, "Store source: Kein BasMgr?" );
ScriptDocument aDocument( ScriptDocument::getDocumentForBasicManager( pBasMgr ) );
ModulWindow* pWin = FindBasWin( aDocument, rInfo.GetLib(), rInfo.GetModule(), false, true );