summaryrefslogtreecommitdiffstats
path: root/include/plist/Data.h
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-10-16 22:26:13 +0200
committerGravatar Jonathan Beck2009-10-16 22:26:13 +0200
commit32be8ec384bfd78e189d3de6609e50cf4dd072a2 (patch)
treeac7edad0f19be2a31efaaaaa3acd477dd2f3c233 /include/plist/Data.h
parent8aeef4dd2331445fea8a7a40466b19973e9d09c4 (diff)
downloadlibplist-32be8ec384bfd78e189d3de6609e50cf4dd072a2.tar.gz
libplist-32be8ec384bfd78e189d3de6609e50cf4dd072a2.tar.bz2
Fix Node lifecycle and change argument as reference to const reference.
Diffstat (limited to 'include/plist/Data.h')
-rw-r--r--include/plist/Data.h8
1 files changed, 6 insertions, 2 deletions
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<char>& buff);
+ Data(Data& d);
+ Data& operator=(Data& d);
+ Data(const std::vector<char>& buff);
virtual ~Data();
- void SetValue(std::vector<char>& buff);
+ Node* Clone();
+
+ void SetValue(const std::vector<char>& buff);
std::vector<char> GetValue();
};