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/Date.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/Date.cpp')
-rw-r--r-- | src/Date.cpp | 15 |
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); |