Fix Node lifecycle and change argument as reference to const reference.

This commit is contained in:
Jonathan Beck
2009-10-16 22:26:13 +02:00
parent 8aeef4dd23
commit 32be8ec384
20 changed files with 179 additions and 65 deletions
+15
View File
@@ -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);