From 8332862a3669b40b00a6bd53f6ba489bfd9f510b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 29 May 2015 12:04:46 +0200 Subject: loplugin:redundantcast: const_cast to same type Change-Id: I305f476e85b4e0bef4ef91fb5eaa75313b0e490f --- sfx2/source/appl/appopen.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sfx2') 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(PTR_CAST( SfxObjectShell, pObj->GetShell() )); + xDoc = PTR_CAST( SfxObjectShell, pObj->GetShell() ); else { const SfxViewFrameItem *pView = PTR_CAST( SfxViewFrameItem, pRet ); -- cgit