Kaydet (Commit) 8332862a authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:redundantcast: const_cast to same type

Change-Id: I305f476e85b4e0bef4ef91fb5eaa75313b0e490f
üst c718f637
...@@ -326,7 +326,7 @@ sal_uIntPtr SfxApplication::LoadTemplate( SfxObjectShellLock& xDoc, const OUStri ...@@ -326,7 +326,7 @@ sal_uIntPtr SfxApplication::LoadTemplate( SfxObjectShellLock& xDoc, const OUStri
const SfxPoolItem *pRet = GetDispatcher_Impl()->Execute( SID_OPENDOC, SfxCallMode::SYNCHRON, &aName, &aHidden, &aReferer, &aFlags, 0L ); const SfxPoolItem *pRet = GetDispatcher_Impl()->Execute( SID_OPENDOC, SfxCallMode::SYNCHRON, &aName, &aHidden, &aReferer, &aFlags, 0L );
const SfxObjectItem *pObj = PTR_CAST( SfxObjectItem, pRet ); const SfxObjectItem *pObj = PTR_CAST( SfxObjectItem, pRet );
if ( pObj ) if ( pObj )
xDoc = const_cast<SfxObjectShell*>(PTR_CAST( SfxObjectShell, pObj->GetShell() )); xDoc = PTR_CAST( SfxObjectShell, pObj->GetShell() );
else else
{ {
const SfxViewFrameItem *pView = PTR_CAST( SfxViewFrameItem, pRet ); const SfxViewFrameItem *pView = PTR_CAST( SfxViewFrameItem, pRet );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment