summaryrefslogtreecommitdiffstats
path: root/include/plist
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-11-10 18:30:43 +0100
committerGravatar Jonathan Beck2009-11-10 18:30:43 +0100
commit0f92ed12ff8a0f46e80ff8cfc030c476d371c19b (patch)
tree4015f1e91fbf46a6a211bcbe5d376c7f2e6a67a1 /include/plist
parent84596548e5d0cb14dfd7d2a74156331ab36a8909 (diff)
downloadlibplist-0f92ed12ff8a0f46e80ff8cfc030c476d371c19b.tar.gz
libplist-0f92ed12ff8a0f46e80ff8cfc030c476d371c19b.tar.bz2
Remove wrongly exposed SetParent method.
Diffstat (limited to 'include/plist')
-rw-r--r--include/plist/Node.h6
-rw-r--r--include/plist/Structure.h1
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 :
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;
};
};
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 :
protected:
Structure(Node* parent = NULL);
Structure(plist_type type, Node* parent = NULL);
+ void UpdateNodeParent(Node* node);
private:
Structure(Structure& s);