mirror of
https://github.com/libimobiledevice/libplist
synced 2026-06-08 15:29:34 +00:00
Fix Node lifecycle and change argument as reference to const reference.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user