diff options
Diffstat (limited to 'kturtle/src/treenode.h')
-rw-r--r-- | kturtle/src/treenode.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kturtle/src/treenode.h b/kturtle/src/treenode.h index 95b15bd8..f43260bf 100644 --- a/kturtle/src/treenode.h +++ b/kturtle/src/treenode.h @@ -213,14 +213,14 @@ class TreeNode : public list<TreeNode*> /*, public Value <-- maybe oneday */ { public: TreeNode(); // used for creation of the first node called 'tree', in the contructor of the parser - TreeNode( TreeNode* ); // give tqparent + TreeNode( TreeNode* ); // give parent TreeNode( Token, NodeType = Unknown, TQString = TQString() ); virtual ~TreeNode(); void init(); void appendChild(TreeNode*); - void appendSibling(TreeNode*); // works only if it has tqparent set! + void appendSibling(TreeNode*); // works only if it has parent set! TreeNode* firstChild(); TreeNode* secondChild(); @@ -232,8 +232,8 @@ class TreeNode : public list<TreeNode*> /*, public Value <-- maybe oneday */ TreeNode* nextSibling(); TreeNode* prevSibling(); - void setParent(TreeNode* p) { tqparent = p; } - TreeNode* getParent() const { return tqparent; } + void setParent(TreeNode* p) { parent = p; } + TreeNode* getParent() const { return parent; } void setToken(Token t) { fTok = t; } Token& getToken() { return fTok; } @@ -254,7 +254,7 @@ class TreeNode : public list<TreeNode*> /*, public Value <-- maybe oneday */ uint getCol() const { return fTok.start.col; } bool hasChildren() const { return size() != 0; } - TreeNode::iterator lookup(); // gives location in tqparent list as iterator (used by prevSibling and nextSibling) + TreeNode::iterator lookup(); // gives location in parent list as iterator (used by prevSibling and nextSibling) TreeNode& operator=(const TreeNode&); @@ -270,7 +270,7 @@ class TreeNode : public list<TreeNode*> /*, public Value <-- maybe oneday */ protected: - TreeNode *tqparent; + TreeNode *parent; }; #endif // _TREENODE_H_ |