From 32be8ec384bfd78e189d3de6609e50cf4dd072a2 Mon Sep 17 00:00:00 2001 From: Jonathan Beck Date: Fri, 16 Oct 2009 22:26:13 +0200 Subject: Fix Node lifecycle and change argument as reference to const reference. --- include/plist/Array.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/plist/Array.h') diff --git a/include/plist/Array.h b/include/plist/Array.h index f990928..106555d 100644 --- a/include/plist/Array.h +++ b/include/plist/Array.h @@ -34,9 +34,11 @@ class Array : public Structure Array(); Array(plist_t node); Array(Array& a); - Array& operator=(const Array& a); + Array& operator=(Array& a); virtual ~Array(); - + + Node* Clone(); + Node* operator[](unsigned int index); void Append(Node* node); void Insert(Node* node, unsigned int pos); -- cgit v1.1-32-gdbae