diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:24:44 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:24:44 +0200 |
commit | cec7d0a908292d065e239024dee06c82ee16809b (patch) | |
tree | 7eadecf45f2b682f767812aef32c6d9fb3686b04 /editeng/source/uno/unotext.cxx | |
parent | 1cb4a7554a21952a323f3e2bbf533b005daf4d00 (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I0d15a14209768ef0292d9abdf00e8fa571cf90da
Diffstat (limited to 'editeng/source/uno/unotext.cxx')
-rw-r--r-- | editeng/source/uno/unotext.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editeng/source/uno/unotext.cxx b/editeng/source/uno/unotext.cxx index ed896e2e2ac8..4933369eeb68 100644 --- a/editeng/source/uno/unotext.cxx +++ b/editeng/source/uno/unotext.cxx @@ -1557,7 +1557,7 @@ SvxUnoTextRange::SvxUnoTextRange( const SvxUnoTextBase& rParent, bool bPortion / :SvxUnoTextRangeBase( rParent.GetEditSource(), bPortion ? ImplGetSvxTextPortionSvxPropertySet() : rParent.getPropertySet() ), mbPortion( bPortion ) { - xParentText = (text::XText*)&rParent; + xParentText = static_cast<text::XText*>(const_cast<SvxUnoTextBase *>(&rParent)); } SvxUnoTextRange::~SvxUnoTextRange() throw() @@ -1696,7 +1696,7 @@ uno::Any SAL_CALL SvxUnoTextBase::queryAggregation( const uno::Type & rType ) QUERYINT( text::XText ); QUERYINT( text::XSimpleText ); if( rType == cppu::UnoType<text::XTextRange>::get()) - return uno::makeAny(uno::Reference< text::XTextRange >((text::XText*)(this))); + return uno::makeAny(uno::Reference< text::XTextRange >(static_cast<text::XText*>(this))); QUERYINT(container::XEnumerationAccess ); QUERYINT( container::XElementAccess ); QUERYINT( beans::XMultiPropertyStates ); @@ -1976,7 +1976,7 @@ uno::Reference< text::XText > SAL_CALL SvxUnoTextBase::getText() SetSelection( aSelection ); } - return (text::XText*)this; + return static_cast<text::XText*>(this); } uno::Reference< text::XTextRange > SAL_CALL SvxUnoTextBase::getStart() @@ -2012,7 +2012,7 @@ uno::Reference< container::XEnumeration > SAL_CALL SvxUnoTextBase::createEnumera ::GetSelection( aSelection, GetEditSource()->GetTextForwarder() ); SetSelection( aSelection ); - uno::Reference< container::XEnumeration > xEnum( (container::XEnumeration*) new SvxUnoTextContentEnumeration( *this ) ); + uno::Reference< container::XEnumeration > xEnum( static_cast<container::XEnumeration*>(new SvxUnoTextContentEnumeration( *this )) ); return xEnum; } |