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/inc | |
parent | 26f2da07b1c6074e519d28557a3d1d5518ff6cb4 (diff) |
loplugin: cstylecast
Change-Id: I20eb45dda584c1c3a2e5d72425e49627fb7c3866
Diffstat (limited to 'rsc/inc')
-rw-r--r-- | rsc/inc/rscarray.hxx | 6 | ||||
-rw-r--r-- | rsc/inc/rscclobj.hxx | 4 | ||||
-rw-r--r-- | rsc/inc/rsctree.hxx | 8 |
3 files changed, 9 insertions, 9 deletions
diff --git a/rsc/inc/rscarray.hxx b/rsc/inc/rscarray.hxx index dd7b511884e9..080a60e45fed 100644 --- a/rsc/inc/rscarray.hxx +++ b/rsc/inc/rscarray.hxx @@ -36,11 +36,11 @@ public: RscInstNode( sal_uInt32 nId ); virtual ~RscInstNode(); virtual sal_uInt32 GetId() const SAL_OVERRIDE; - RscInstNode * Left() const { return (RscInstNode *)pLeft ; }; - RscInstNode * Right() const{ return (RscInstNode *)pRight ; }; + RscInstNode * Left() const { return static_cast<RscInstNode *>(pLeft); }; + RscInstNode * Right() const{ return static_cast<RscInstNode *>(pRight); }; RscInstNode * Search( sal_uInt32 nId ) const { - return (RscInstNode *)IdNode::Search( nId ); + return static_cast<RscInstNode *>(IdNode::Search( nId )); } }; diff --git a/rsc/inc/rscclobj.hxx b/rsc/inc/rscclobj.hxx index 8cc515889976..a66959b3425f 100644 --- a/rsc/inc/rscclobj.hxx +++ b/rsc/inc/rscclobj.hxx @@ -42,7 +42,7 @@ public: sal_uLong GetFileKey(){ return lFileKey; }; ObjNode* Search( const RscId &rName ) const //< search the index in the b-tree { - return( (ObjNode *)IdNode::Search( rName ) ); + return( static_cast<ObjNode *>(IdNode::Search( rName )) ); } bool Insert( ObjNode* pTN ) //< insert a new node in the b-tree @@ -72,7 +72,7 @@ public: sal_uInt32 GetId() const SAL_OVERRIDE; RefNode* Search( Atom typ ) const //< search the index in the b-tree { - return( (RefNode *)IdNode::Search( typ ) ); + return( static_cast<RefNode *>(IdNode::Search( typ )) ); } bool Insert( RefNode* pTN ) //< insert a new node in the b-tree { diff --git a/rsc/inc/rsctree.hxx b/rsc/inc/rsctree.hxx index 29c4f15122e5..15881fdee485 100644 --- a/rsc/inc/rsctree.hxx +++ b/rsc/inc/rsctree.hxx @@ -42,8 +42,8 @@ public: // verkettete Liste um BiNode* ChangeBTreeDLList(); - BiNode * Left() const { return pLeft ; }; - BiNode * Right() const{ return pRight ; }; + BiNode * Left() const { return pLeft ; } + BiNode * Right() const{ return pRight ; } void EnumNodes( Link aLink ) const; }; @@ -56,8 +56,8 @@ protected: NameNode* Search( const void * pCmp ) const; public: - NameNode* Left() const { return (NameNode *)pLeft ; }; - NameNode* Right() const{ return (NameNode *)pRight ; }; + NameNode* Left() const { return static_cast<NameNode *>(pLeft); } + NameNode* Right() const{ return static_cast<NameNode *>(pRight); } NameNode* Search( const NameNode * pName ) const; // insert a new node in the b-tree bool Insert( NameNode * pTN, sal_uInt32 * nDepth ); |