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/String.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/String.h')
| -rw-r--r-- | include/plist/String.h | 8 |
1 files changed, 6 insertions, 2 deletions
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 | |||
| 33 | public : | 33 | public : |
| 34 | String(); | 34 | String(); |
| 35 | String(plist_t node); | 35 | String(plist_t node); |
| 36 | String(std::string& s); | 36 | String(String& s); |
| 37 | String& operator=(String& s); | ||
| 38 | String(const std::string& s); | ||
| 37 | virtual ~String(); | 39 | virtual ~String(); |
| 38 | 40 | ||
| 39 | void SetValue(std::string& s); | 41 | Node* Clone(); |
| 42 | |||
| 43 | void SetValue(const std::string& s); | ||
| 40 | std::string GetValue(); | 44 | std::string GetValue(); |
| 41 | }; | 45 | }; |
| 42 | 46 | ||
