From 0f92ed12ff8a0f46e80ff8cfc030c476d371c19b Mon Sep 17 00:00:00 2001 From: Jonathan Beck Date: Tue, 10 Nov 2009 18:30:43 +0100 Subject: Remove wrongly exposed SetParent method. --- src/Structure.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/Structure.cpp') 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 Structure::ToBin() return ret; } +void Structure::UpdateNodeParent(Node* node) +{ + //Unlink node first + if ( NULL != node->_parent ) + { + plist_type type = plist_get_node_type(node->_parent); + if (PLIST_ARRAY ==type || PLIST_DICT == type ) + { + Structure* s = static_cast(node->_parent); + s->Remove(node); + } + } + node->_parent = this; +} + }; -- cgit v1.1-32-gdbae