diff options
author | Jonathan Beck | 2009-10-16 22:26:13 +0200 |
---|---|---|
committer | Jonathan Beck | 2009-10-16 22:26:13 +0200 |
commit | 32be8ec384bfd78e189d3de6609e50cf4dd072a2 (patch) | |
tree | ac7edad0f19be2a31efaaaaa3acd477dd2f3c233 /src/Node.cpp | |
parent | 8aeef4dd2331445fea8a7a40466b19973e9d09c4 (diff) | |
download | libplist-32be8ec384bfd78e189d3de6609e50cf4dd072a2.tar.gz libplist-32be8ec384bfd78e189d3de6609e50cf4dd072a2.tar.bz2 |
Fix Node lifecycle and change argument as reference to const reference.
Diffstat (limited to 'src/Node.cpp')
-rw-r--r-- | src/Node.cpp | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/Node.cpp b/src/Node.cpp index dbcd6d6..ace1990 100644 --- a/src/Node.cpp +++ b/src/Node.cpp @@ -74,22 +74,6 @@ Node::~Node() _node = NULL; } -Node::Node(Node& node) -{ - plist_free(_node); - _node = NULL; - - _node = plist_copy(_node); -} - -Node& Node::operator=(const Node& node) -{ - plist_free(_node); - _node = NULL; - - _node = plist_copy(_node); -} - plist_type Node::GetType() { if (_node) @@ -98,7 +82,7 @@ plist_type Node::GetType() } } -plist_t Node::GetPlist() const +plist_t Node::GetPlist() { return _node; } |