From d5cb535017888c2ea5494384092bc86175802454 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 11 May 2015 12:50:22 +0200 Subject: loplugin:cstylecast: nop between pointer types of exactly same spelling Change-Id: I1e62523e08e6f1e7ec926b1a5e7c45d7c688f781 --- rsc/source/tools/rsctree.cxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'rsc') diff --git a/rsc/source/tools/rsctree.cxx b/rsc/source/tools/rsctree.cxx index f37ea656f719..10f3d40c97e0 100644 --- a/rsc/source/tools/rsctree.cxx +++ b/rsc/source/tools/rsctree.cxx @@ -184,18 +184,18 @@ NameNode* NameNode::SearchParent( const NameNode * pSearch ) const { if( Left() ) { - if( ((NameNode *)Left())->Compare( pSearch ) == EQUAL ) + if( Left()->Compare( pSearch ) == EQUAL ) return const_cast(this); - return ((NameNode *)Left())->SearchParent( pSearch ); + return Left()->SearchParent( pSearch ); } } else if( nCmp == LESS ) { if( Right() ) { - if( ((NameNode *)Right())->Compare( pSearch ) == EQUAL ) + if( Right()->Compare( pSearch ) == EQUAL ) return const_cast(this); - return ((NameNode *)Right())->SearchParent( pSearch ); + return Right()->SearchParent( pSearch ); } } return (NameNode *)NULL; @@ -211,12 +211,12 @@ NameNode* NameNode::Search( const NameNode * pSearch ) const if( nCmp == GREATER ) { if( Left() ) - return ((NameNode *)Left())->Search( pSearch ); + return Left()->Search( pSearch ); } else if( nCmp == LESS ) { if( Right() ) - return ((NameNode *)Right())->Search( pSearch ); + return Right()->Search( pSearch ); } else return const_cast(this); @@ -234,12 +234,12 @@ NameNode* NameNode::Search( const void * pSearch ) const if( nCmp == GREATER ) { if( Left() ) - return ((NameNode *)Left())->Search( pSearch ); + return Left()->Search( pSearch ); } else if( nCmp == LESS ) { if( Right() ) - return ((NameNode *)Right())->Search( pSearch ); + return Right()->Search( pSearch ); } else return const_cast(this); @@ -260,14 +260,14 @@ bool NameNode::Insert( NameNode * pTN, sal_uInt32* pnDepth ) if( nCmp == GREATER ) { if( Left() ) - bRet = ((NameNode *)Left())->Insert( pTN, pnDepth ); + bRet = Left()->Insert( pTN, pnDepth ); else pLeft = pTN; } else { if( Right() ) - bRet = ((NameNode *)Right())->Insert( pTN, pnDepth ); + bRet = Right()->Insert( pTN, pnDepth ); else pRight = pTN; -- cgit