summaryrefslogtreecommitdiffstats
path: root/src/Node.cpp
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-10-16 22:26:13 +0200
committerGravatar Jonathan Beck2009-10-16 22:26:13 +0200
commit32be8ec384bfd78e189d3de6609e50cf4dd072a2 (patch)
treeac7edad0f19be2a31efaaaaa3acd477dd2f3c233 /src/Node.cpp
parent8aeef4dd2331445fea8a7a40466b19973e9d09c4 (diff)
downloadlibplist-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.cpp18
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;
}