summaryrefslogtreecommitdiffstats
path: root/src/Structure.cpp
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 /src/Structure.cpp
parent84596548e5d0cb14dfd7d2a74156331ab36a8909 (diff)
downloadlibplist-0f92ed12ff8a0f46e80ff8cfc030c476d371c19b.tar.gz
libplist-0f92ed12ff8a0f46e80ff8cfc030c476d371c19b.tar.bz2
Remove wrongly exposed SetParent method.
Diffstat (limited to 'src/Structure.cpp')
-rw-r--r--src/Structure.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Structure.cpp b/src/Structure.cpp
index 872d396..cf7c611 100644
--- a/src/Structure.cpp
+++ b/src/Structure.cpp
@@ -70,5 +70,20 @@ std::vector<char> Structure::ToBin()
70 return ret; 70 return ret;
71} 71}
72 72
73void Structure::UpdateNodeParent(Node* node)
74{
75 //Unlink node first
76 if ( NULL != node->_parent )
77 {
78 plist_type type = plist_get_node_type(node->_parent);
79 if (PLIST_ARRAY ==type || PLIST_DICT == type )
80 {
81 Structure* s = static_cast<Structure*>(node->_parent);
82 s->Remove(node);
83 }
84 }
85 node->_parent = this;
86}
87
73}; 88};
74 89