summaryrefslogtreecommitdiffstats
path: root/src/Array.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/Array.cpp
parent84596548e5d0cb14dfd7d2a74156331ab36a8909 (diff)
downloadlibplist-0f92ed12ff8a0f46e80ff8cfc030c476d371c19b.tar.gz
libplist-0f92ed12ff8a0f46e80ff8cfc030c476d371c19b.tar.bz2
Remove wrongly exposed SetParent method.
Diffstat (limited to 'src/Array.cpp')
-rw-r--r--src/Array.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Array.cpp b/src/Array.cpp
index a847ae2..3069314 100644
--- a/src/Array.cpp
+++ b/src/Array.cpp
@@ -101,7 +101,7 @@ void Array::Append(Node* node)
if (node)
{
Node* clone = node->Clone();
- clone->SetParent(this);
+ UpdateNodeParent(clone);
plist_array_append_item(_node, clone->GetPlist());
_array.push_back(clone);
}
@@ -112,7 +112,7 @@ void Array::Insert(Node* node, unsigned int pos)
if (node)
{
Node* clone = node->Clone();
- clone->SetParent(this);
+ UpdateNodeParent(clone);
plist_array_insert_item(_node, clone->GetPlist(), pos);
std::vector<Node*>::iterator it = _array.begin();
it += pos;