diff options
| author | 2025-02-24 23:01:20 +0800 | |
|---|---|---|
| committer | 2025-03-01 23:17:04 +0100 | |
| commit | 02be84957d44ce68dcf81bada0d3250d4d81395a (patch) | |
| tree | 9a74cbe22aced4c2b410ce883fb2834144399085 /include/plist | |
| parent | 44099d4b79c8d6a7d599d652ebef62db8dae6696 (diff) | |
| download | libplist-02be84957d44ce68dcf81bada0d3250d4d81395a.tar.gz libplist-02be84957d44ce68dcf81bada0d3250d4d81395a.tar.bz2 | |
C++: Fix String::GetValue memory leaking and suport assignment of const char*
Diffstat (limited to 'include/plist')
| -rw-r--r-- | include/plist/String.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/plist/String.h b/include/plist/String.h index 9aba16b..4392482 100644 --- a/include/plist/String.h +++ b/include/plist/String.h | |||
| @@ -35,6 +35,7 @@ public : | |||
| 35 | String(plist_t node, Node* parent = NULL); | 35 | String(plist_t node, Node* parent = NULL); |
| 36 | String(const String& s); | 36 | String(const String& s); |
| 37 | String& operator=(const String& s); | 37 | String& operator=(const String& s); |
| 38 | String& operator=(const char* s); | ||
| 38 | String(const std::string& s); | 39 | String(const std::string& s); |
| 39 | virtual ~String(); | 40 | virtual ~String(); |
| 40 | 41 | ||
