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/Data.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include/plist/Data.h') diff --git a/include/plist/Data.h b/include/plist/Data.h index 92bda0a..86a26d9 100644 --- a/include/plist/Data.h +++ b/include/plist/Data.h @@ -33,10 +33,14 @@ class Data : public Node public : Data(); Data(plist_t node); - Data(std::vector& buff); + Data(Data& d); + Data& operator=(Data& d); + Data(const std::vector& buff); virtual ~Data(); - void SetValue(std::vector& buff); + Node* Clone(); + + void SetValue(const std::vector& buff); std::vector GetValue(); }; -- cgit v1.1-32-gdbae