From aa99d57ae32aa62dca9d7574ab3e4216b3b865e6 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 17 Jan 2015 18:43:59 +0100 Subject: Some more loplugin:cstylecast: editeng Change-Id: I047212dfd7ae330d6cd8149e3c7110d67b9e79e9 --- editeng/source/rtf/svxrtf.cxx | 4 ++-- editeng/source/uno/unotext2.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'editeng') diff --git a/editeng/source/rtf/svxrtf.cxx b/editeng/source/rtf/svxrtf.cxx index 3cf999685674..1d3f79428f9e 100644 --- a/editeng/source/rtf/svxrtf.cxx +++ b/editeng/source/rtf/svxrtf.cxx @@ -1111,8 +1111,8 @@ void SvxRTFParser::BuildWhichTbl() // Building a Which-Map 'rWhichMap' from an array of // 'pWhichIds' from Which-Ids. It has the long 'nWhichIds'. // The Which-Map is not going to be deleted. - SvParser::BuildWhichTbl( aWhichMap, (sal_uInt16*)&aPardMap, sizeof(aPardMap) / sizeof(sal_uInt16) ); - SvParser::BuildWhichTbl( aWhichMap, (sal_uInt16*)&aPlainMap, sizeof(aPlainMap) / sizeof(sal_uInt16) ); + SvParser::BuildWhichTbl( aWhichMap, reinterpret_cast(&aPardMap), sizeof(aPardMap) / sizeof(sal_uInt16) ); + SvParser::BuildWhichTbl( aWhichMap, reinterpret_cast(&aPlainMap), sizeof(aPlainMap) / sizeof(sal_uInt16) ); } const SfxItemSet& SvxRTFParser::GetRTFDefaults() diff --git a/editeng/source/uno/unotext2.cxx b/editeng/source/uno/unotext2.cxx index 14c72d9b12a4..4b51b8560a88 100644 --- a/editeng/source/uno/unotext2.cxx +++ b/editeng/source/uno/unotext2.cxx @@ -481,7 +481,7 @@ uno::Any SAL_CALL SvxUnoTextCursor::queryAggregation( const uno::Type & rType ) throw(uno::RuntimeException, std::exception) { if( rType == cppu::UnoType::get()) - return uno::makeAny(uno::Reference< text::XTextRange >((text::XText*)(this))); + return uno::makeAny(uno::Reference< text::XTextRange >(static_cast(this))); else QUERYINT( text::XTextCursor ); else QUERYINT( beans::XMultiPropertyStates ); else QUERYINT( beans::XPropertySet ); -- cgit v1.2.3