summaryrefslogtreecommitdiffstats
path: root/src/Date.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/Date.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/Date.cpp')
-rw-r--r--src/Date.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Date.cpp b/src/Date.cpp
index f6a6f42..18e1d27 100644
--- a/src/Date.cpp
+++ b/src/Date.cpp
@@ -32,6 +32,16 @@ Date::Date(plist_t node) : Node(node)
{
}
+Date::Date(Date& d) : Node(PLIST_DATE)
+{
+ //TODO
+}
+
+Date& Date::operator=(PList::Date& b)
+{
+ //TODO
+}
+
Date::Date(uint64_t i) : Node(PLIST_DATE)
{
plist_set_date_val(_node, i, 0);
@@ -41,6 +51,11 @@ Date::~Date()
{
}
+Node* Date::Clone()
+{
+ return new Date(*this);
+}
+
void Date::SetValue(uint64_t i)
{
plist_set_date_val(_node, i, 0);