diff options
| author | 2009-10-16 22:26:13 +0200 | |
|---|---|---|
| committer | 2009-10-16 22:26:13 +0200 | |
| commit | 32be8ec384bfd78e189d3de6609e50cf4dd072a2 (patch) | |
| tree | ac7edad0f19be2a31efaaaaa3acd477dd2f3c233 /include/plist/Array.h | |
| parent | 8aeef4dd2331445fea8a7a40466b19973e9d09c4 (diff) | |
| download | libplist-32be8ec384bfd78e189d3de6609e50cf4dd072a2.tar.gz libplist-32be8ec384bfd78e189d3de6609e50cf4dd072a2.tar.bz2 | |
Fix Node lifecycle and change argument as reference to const reference.
Diffstat (limited to 'include/plist/Array.h')
| -rw-r--r-- | include/plist/Array.h | 6 |
1 files changed, 4 insertions, 2 deletions
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 | |||
| 34 | Array(); | 34 | Array(); |
| 35 | Array(plist_t node); | 35 | Array(plist_t node); |
| 36 | Array(Array& a); | 36 | Array(Array& a); |
| 37 | Array& operator=(const Array& a); | 37 | Array& operator=(Array& a); |
| 38 | virtual ~Array(); | 38 | virtual ~Array(); |
| 39 | 39 | ||
| 40 | Node* Clone(); | ||
| 41 | |||
| 40 | Node* operator[](unsigned int index); | 42 | Node* operator[](unsigned int index); |
| 41 | void Append(Node* node); | 43 | void Append(Node* node); |
| 42 | void Insert(Node* node, unsigned int pos); | 44 | void Insert(Node* node, unsigned int pos); |
