mirror of
https://github.com/libimobiledevice/libplist
synced 2026-06-08 15:29:34 +00:00
Change Clone() to be const, which required constructors with const references and a const GetValue().
This commit is contained in:
committed by
Nikias Bassen
parent
bc147d80b5
commit
ccd6f05fe1
+2
-2
@@ -43,7 +43,7 @@ Array::Array(plist_t node, Node* parent) : Structure(parent)
|
||||
}
|
||||
}
|
||||
|
||||
Array::Array(PList::Array& a) : Structure()
|
||||
Array::Array(const PList::Array& a) : Structure()
|
||||
{
|
||||
_array.clear();
|
||||
_node = plist_copy(a.GetPlist());
|
||||
@@ -85,7 +85,7 @@ Array::~Array()
|
||||
_array.clear();
|
||||
}
|
||||
|
||||
Node* Array::Clone()
|
||||
Node* Array::Clone() const
|
||||
{
|
||||
return new Array(*this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user