Kaydet (Commit) aa99d57a authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Some more loplugin:cstylecast: editeng

Change-Id: I047212dfd7ae330d6cd8149e3c7110d67b9e79e9
üst 87b9d323
...@@ -1111,8 +1111,8 @@ void SvxRTFParser::BuildWhichTbl() ...@@ -1111,8 +1111,8 @@ void SvxRTFParser::BuildWhichTbl()
// Building a Which-Map 'rWhichMap' from an array of // Building a Which-Map 'rWhichMap' from an array of
// 'pWhichIds' from Which-Ids. It has the long 'nWhichIds'. // 'pWhichIds' from Which-Ids. It has the long 'nWhichIds'.
// The Which-Map is not going to be deleted. // The Which-Map is not going to be deleted.
SvParser::BuildWhichTbl( aWhichMap, (sal_uInt16*)&aPardMap, sizeof(aPardMap) / sizeof(sal_uInt16) ); SvParser::BuildWhichTbl( aWhichMap, reinterpret_cast<sal_uInt16*>(&aPardMap), sizeof(aPardMap) / sizeof(sal_uInt16) );
SvParser::BuildWhichTbl( aWhichMap, (sal_uInt16*)&aPlainMap, sizeof(aPlainMap) / sizeof(sal_uInt16) ); SvParser::BuildWhichTbl( aWhichMap, reinterpret_cast<sal_uInt16*>(&aPlainMap), sizeof(aPlainMap) / sizeof(sal_uInt16) );
} }
const SfxItemSet& SvxRTFParser::GetRTFDefaults() const SfxItemSet& SvxRTFParser::GetRTFDefaults()
......
...@@ -481,7 +481,7 @@ uno::Any SAL_CALL SvxUnoTextCursor::queryAggregation( const uno::Type & rType ) ...@@ -481,7 +481,7 @@ uno::Any SAL_CALL SvxUnoTextCursor::queryAggregation( const uno::Type & rType )
throw(uno::RuntimeException, std::exception) throw(uno::RuntimeException, std::exception)
{ {
if( rType == cppu::UnoType<text::XTextRange>::get()) 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<SvxUnoTextRangeBase *>(this)));
else QUERYINT( text::XTextCursor ); else QUERYINT( text::XTextCursor );
else QUERYINT( beans::XMultiPropertyStates ); else QUERYINT( beans::XMultiPropertyStates );
else QUERYINT( beans::XPropertySet ); else QUERYINT( beans::XPropertySet );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment