diff options
author | Noel Grandin <noel@peralex.com> | 2014-09-19 15:30:28 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-09-29 12:50:34 +0200 |
commit | 6129aea3a5bad629a108363f3a7fbf135e796092 (patch) | |
tree | 63689027c36ef35d2bac083960246e865efcc1f8 /rsc/source/res | |
parent | 26f2da07b1c6074e519d28557a3d1d5518ff6cb4 (diff) |
loplugin: cstylecast
Change-Id: I20eb45dda584c1c3a2e5d72425e49627fb7c3866
Diffstat (limited to 'rsc/source/res')
-rw-r--r-- | rsc/source/res/rscclobj.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/rsc/source/res/rscclobj.cxx b/rsc/source/res/rscclobj.cxx index 4f5e5ace0490..96866dd4b819 100644 --- a/rsc/source/res/rscclobj.cxx +++ b/rsc/source/res/rscclobj.cxx @@ -69,9 +69,9 @@ ObjNode * ObjNode::DelObjNode( RscTop * pClass, sal_uLong nFileKey ) ObjNode * pRetNode = this; if( Right() ) - pRight = ((ObjNode *)Right())->DelObjNode( pClass, nFileKey ); + pRight = static_cast<ObjNode *>(Right())->DelObjNode( pClass, nFileKey ); if( Left() ) - pLeft = ((ObjNode *)Left())->DelObjNode( pClass, nFileKey ); + pLeft = static_cast<ObjNode *>(Left())->DelObjNode( pClass, nFileKey ); if( GetFileKey() == nFileKey ) { @@ -80,14 +80,14 @@ ObjNode * ObjNode::DelObjNode( RscTop * pClass, sal_uLong nFileKey ) pClass->Destroy( RSCINST( pClass, GetRscObj() ) ); rtl_freeMemory( GetRscObj() ); } - pRetNode = (ObjNode *)Right(); + pRetNode = static_cast<ObjNode *>(Right()); if( pRetNode ) { if( Left() ) - pRetNode->Insert( (ObjNode *)Left() ); + pRetNode->Insert( static_cast<ObjNode *>(Left()) ); } else - pRetNode = (ObjNode *)Left(); + pRetNode = static_cast<ObjNode *>(Left()); delete this; } @@ -111,22 +111,22 @@ bool ObjNode::IsConsistent() { if( Left() ) { - if( !((ObjNode *)Left())->IsConsistent() ) + if( !static_cast<ObjNode *>(Left())->IsConsistent() ) { bRet = false; } - if( ((ObjNode *)Left())->aRscId >= aRscId ) + if( static_cast<ObjNode *>(Left())->aRscId >= aRscId ) { bRet = false; } } if( Right() ) { - if( ((ObjNode *)Right())->aRscId <= aRscId ) + if( static_cast<ObjNode *>(Right())->aRscId <= aRscId ) { bRet = false; } - if( !((ObjNode *)Right())->IsConsistent() ) + if( !static_cast<ObjNode *>(Right())->IsConsistent() ) { bRet = false; } |