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