summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unodraw.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-29 12:05:00 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-29 12:05:00 +0200
commit148953244fc8d741ef84ef777ad566ae80edd28a (patch)
tree807234f01238659c42e87bd1975e6c091f5e89e0 /sw/source/core/unocore/unodraw.cxx
parent5dc811daf9ea03dfccabec3a80a44bd12fa62d66 (diff)
loplugin:redundantcast: const_cast to same type
Change-Id: I7cb919140539d0d573b5fbf786a6041843c2388a
Diffstat (limited to 'sw/source/core/unocore/unodraw.cxx')
-rw-r--r--sw/source/core/unocore/unodraw.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx
index 828bb206a12c..42a8013ee4c5 100644
--- a/sw/source/core/unocore/unodraw.cxx
+++ b/sw/source/core/unocore/unodraw.cxx
@@ -990,7 +990,7 @@ void SwXShape::AddExistingShapeToFormat( SdrObject& _rObj )
{
if ( pSwShape->m_bDescriptor )
{
- SwFrameFormat* pFormat = ::FindFrameFormat( const_cast< SdrObject* >( pCurrent ) );
+ SwFrameFormat* pFormat = ::FindFrameFormat( pCurrent );
if ( pFormat )
pFormat->Add( pSwShape );
pSwShape->m_bDescriptor = false;