summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/String.cpp7
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)
return *this;
}
+String& String::operator=(const std::string& s)
+{
+ plist_free(_node);
+ _node = plist_new_string(s.c_str());
+ return *this;
+}
+
String& String::operator=(const char* s)
{
plist_free(_node);