summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-29 12:04:46 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-29 12:04:46 +0200
commit8332862a3669b40b00a6bd53f6ba489bfd9f510b (patch)
treec7a443034c2c0c01d773bf7da56adb44ece6884b /sfx2
parentc718f637a6db3fc7c1a548bfc7a1d15d83ffdc81 (diff)
loplugin:redundantcast: const_cast to same type
Change-Id: I305f476e85b4e0bef4ef91fb5eaa75313b0e490f
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/appopen.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/appl/appopen.cxx b/sfx2/source/appl/appopen.cxx
index 47938744425e..e27754e87941 100644
--- a/sfx2/source/appl/appopen.cxx
+++ b/sfx2/source/appl/appopen.cxx
@@ -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 SfxObjectItem *pObj = PTR_CAST( SfxObjectItem, pRet );
if ( pObj )
- xDoc = const_cast<SfxObjectShell*>(PTR_CAST( SfxObjectShell, pObj->GetShell() ));
+ xDoc = PTR_CAST( SfxObjectShell, pObj->GetShell() );
else
{
const SfxViewFrameItem *pView = PTR_CAST( SfxViewFrameItem, pRet );