diff options
| author | 2009-11-10 18:30:43 +0100 | |
|---|---|---|
| committer | 2009-11-10 18:30:43 +0100 | |
| commit | 0f92ed12ff8a0f46e80ff8cfc030c476d371c19b (patch) | |
| tree | 4015f1e91fbf46a6a211bcbe5d376c7f2e6a67a1 /include/plist | |
| parent | 84596548e5d0cb14dfd7d2a74156331ab36a8909 (diff) | |
| download | libplist-0f92ed12ff8a0f46e80ff8cfc030c476d371c19b.tar.gz libplist-0f92ed12ff8a0f46e80ff8cfc030c476d371c19b.tar.bz2 | |
Remove wrongly exposed SetParent method.
Diffstat (limited to 'include/plist')
| -rw-r--r-- | include/plist/Node.h | 6 | ||||
| -rw-r--r-- | include/plist/Structure.h | 1 |
2 files changed, 5 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 : | |||
| 33 | virtual ~Node(); | 33 | virtual ~Node(); |
| 34 | 34 | ||
| 35 | virtual Node* Clone() = 0; | 35 | virtual Node* Clone() = 0; |
| 36 | Node * GetParent(); | ||
| 37 | void SetParent(Node* parent); | ||
| 38 | 36 | ||
| 37 | Node * GetParent(); | ||
| 39 | plist_type GetType(); | 38 | plist_type GetType(); |
| 40 | plist_t GetPlist(); | 39 | plist_t GetPlist(); |
| 41 | 40 | ||
| @@ -44,7 +43,10 @@ protected: | |||
| 44 | Node(plist_t node, Node* parent = NULL); | 43 | Node(plist_t node, Node* parent = NULL); |
| 45 | Node(plist_type type, Node* parent = NULL); | 44 | Node(plist_type type, Node* parent = NULL); |
| 46 | plist_t _node; | 45 | plist_t _node; |
| 46 | |||
| 47 | private: | ||
| 47 | Node* _parent; | 48 | Node* _parent; |
| 49 | friend class Structure; | ||
| 48 | }; | 50 | }; |
| 49 | 51 | ||
| 50 | }; | 52 | }; |
diff --git a/include/plist/Structure.h b/include/plist/Structure.h index 66d9293..f6e4495 100644 --- a/include/plist/Structure.h +++ b/include/plist/Structure.h | |||
| @@ -44,6 +44,7 @@ public : | |||
| 44 | protected: | 44 | protected: |
| 45 | Structure(Node* parent = NULL); | 45 | Structure(Node* parent = NULL); |
| 46 | Structure(plist_type type, Node* parent = NULL); | 46 | Structure(plist_type type, Node* parent = NULL); |
| 47 | void UpdateNodeParent(Node* node); | ||
| 47 | 48 | ||
| 48 | private: | 49 | private: |
| 49 | Structure(Structure& s); | 50 | Structure(Structure& s); |
