summaryrefslogtreecommitdiff
path: root/rsc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-11 12:50:22 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-11 12:50:22 +0200
commitd5cb535017888c2ea5494384092bc86175802454 (patch)
tree34f84931c8703c6d77501a21389573f4058a968f /rsc
parent0ef18e3531776bfaf8367cb5531630be40e5dc1d (diff)
loplugin:cstylecast: nop between pointer types of exactly same spelling
Change-Id: I1e62523e08e6f1e7ec926b1a5e7c45d7c688f781
Diffstat (limited to 'rsc')
-rw-r--r--rsc/source/tools/rsctree.cxx20
1 files changed, 10 insertions, 10 deletions
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<NameNode *>(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<NameNode *>(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<NameNode *>(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<NameNode *>(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;