diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-05-29 12:05:00 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-05-29 12:05:00 +0200 |
commit | 148953244fc8d741ef84ef777ad566ae80edd28a (patch) | |
tree | 807234f01238659c42e87bd1975e6c091f5e89e0 /sw/source/core/doc/docftn.cxx | |
parent | 5dc811daf9ea03dfccabec3a80a44bd12fa62d66 (diff) |
loplugin:redundantcast: const_cast to same type
Change-Id: I7cb919140539d0d573b5fbf786a6041843c2388a
Diffstat (limited to 'sw/source/core/doc/docftn.cxx')
-rw-r--r-- | sw/source/core/doc/docftn.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/doc/docftn.cxx b/sw/source/core/doc/docftn.cxx index b89ae65d0110..5d6c51c156a0 100644 --- a/sw/source/core/doc/docftn.cxx +++ b/sw/source/core/doc/docftn.cxx @@ -47,12 +47,12 @@ SwEndNoteInfo& SwEndNoteInfo::operator=(const SwEndNoteInfo& rInfo) if ( rInfo.aPageDescDep.GetRegisteredIn() ) const_cast<SwModify*>(rInfo.aPageDescDep.GetRegisteredIn())->Add( &aPageDescDep ); else if ( aPageDescDep.GetRegisteredIn() ) - const_cast<SwModify*>(aPageDescDep.GetRegisteredIn())->Remove( &aPageDescDep ); + aPageDescDep.GetRegisteredIn()->Remove( &aPageDescDep ); if ( rInfo.aCharFormatDep.GetRegisteredIn() ) const_cast<SwModify*>(rInfo.aCharFormatDep.GetRegisteredIn())->Add( &aCharFormatDep ); else if ( aCharFormatDep.GetRegisteredIn() ) - const_cast<SwModify*>(aCharFormatDep.GetRegisteredIn())->Remove( &aCharFormatDep ); + aCharFormatDep.GetRegisteredIn()->Remove( &aCharFormatDep ); if ( rInfo.aAnchorCharFormatDep.GetRegisteredIn() ) const_cast<SwModify*>(rInfo.aAnchorCharFormatDep.GetRegisteredIn())->Add( |