Change Clone() to be const, which required constructors with const references and a const GetValue().

This commit is contained in:
Aaron Burghardt
2014-08-15 21:59:01 -04:00
committed by Nikias Bassen
parent bc147d80b5
commit ccd6f05fe1
22 changed files with 71 additions and 65 deletions
+2 -2
View File
@@ -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);
}