diff options
Diffstat (limited to 'include/plist/Node.h')
-rw-r--r-- | include/plist/Node.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/plist/Node.h b/include/plist/Node.h index 7ea6ed9..2f9f5b6 100644 --- a/include/plist/Node.h +++ b/include/plist/Node.h @@ -33,9 +33,8 @@ public : virtual ~Node(); virtual Node* Clone() = 0; - Node * GetParent(); - void SetParent(Node* parent); + Node * GetParent(); plist_type GetType(); plist_t GetPlist(); @@ -44,7 +43,10 @@ protected: Node(plist_t node, Node* parent = NULL); Node(plist_type type, Node* parent = NULL); plist_t _node; + +private: Node* _parent; + friend class Structure; }; }; |