summaryrefslogtreecommitdiff
path: root/rsc/source/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-27 13:07:42 +0200
committerNoel Grandin <noel@peralex.com>2015-09-08 09:20:31 +0200
commit751c771adc45cb150fa42bc70397e2571b28a60b (patch)
treebe54e28005ac5c4d00a0c01dca2119f80d7f8119 /rsc/source/tools
parentf36f17f691903a389a7d98e85af12e08b75f6876 (diff)
loplugin:mergeclass, merge BiNode with NameNode, Obj0Type with ObjkType
Change-Id: Icbc0dfc6096a6e2c651dad4fe9f78d176f389390
Diffstat (limited to 'rsc/source/tools')
-rw-r--r--rsc/source/tools/rsctree.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/rsc/source/tools/rsctree.cxx b/rsc/source/tools/rsctree.cxx
index eb69285cd22f..8ee50368efdf 100644
--- a/rsc/source/tools/rsctree.cxx
+++ b/rsc/source/tools/rsctree.cxx
@@ -26,32 +26,32 @@
#include <rsctree.hxx>
-BiNode::BiNode()
+NameNode::NameNode()
{
pLeft = pRight = NULL;
}
-BiNode::~BiNode()
+NameNode::~NameNode()
{
}
-void BiNode::EnumNodes( Link<> aLink ) const
+void NameNode::EnumNodes( Link<> aLink ) const
{
if( Left() )
Left()->EnumNodes( aLink );
- aLink.Call( const_cast<BiNode *>(this) );
+ aLink.Call( const_cast<NameNode *>(this) );
if( Right() )
Right()->EnumNodes( aLink );
}
-BiNode * BiNode::ChangeDLListBTree( BiNode * pList )
+NameNode * NameNode::ChangeDLListBTree( NameNode * pList )
{
- BiNode * pMiddle;
- BiNode * pTmp;
+ NameNode * pMiddle;
+ NameNode * pTmp;
sal_uInt32 nEle, i;
if( pList )
-{
+ {
while( pList->Left() )
pList = pList->Left();
pTmp = pList;
@@ -75,7 +75,7 @@ BiNode * BiNode::ChangeDLListBTree( BiNode * pList )
pTmp->pRight = nullptr;
// set left pointer to NULL
- BiNode * pRightNode = pMiddle->Right();
+ NameNode * pRightNode = pMiddle->Right();
if (pRightNode)
pRightNode->pLeft = nullptr;
@@ -87,10 +87,10 @@ BiNode * BiNode::ChangeDLListBTree( BiNode * pList )
return pList;
}
-BiNode * BiNode::ChangeBTreeDLList()
+NameNode * NameNode::ChangeBTreeDLList()
{
- BiNode * pList;
- BiNode * pLL_RN; // right node of left list
+ NameNode * pList;
+ NameNode * pLL_RN; // right node of left list
if( Right() )
{