diff options
Diffstat (limited to 'src/String.cpp')
| -rw-r--r-- | src/String.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/String.cpp b/src/String.cpp index 5bae804..8daec0f 100644 --- a/src/String.cpp +++ b/src/String.cpp | |||
| @@ -45,6 +45,13 @@ String& String::operator=(const PList::String& s) | |||
| 45 | return *this; | 45 | return *this; |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | String& String::operator=(const std::string& s) | ||
| 49 | { | ||
| 50 | plist_free(_node); | ||
| 51 | _node = plist_new_string(s.c_str()); | ||
| 52 | return *this; | ||
| 53 | } | ||
| 54 | |||
| 48 | String& String::operator=(const char* s) | 55 | String& String::operator=(const char* s) |
| 49 | { | 56 | { |
| 50 | plist_free(_node); | 57 | plist_free(_node); |
