aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/SkString.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkString.cpp')
-rw-r--r--src/core/SkString.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/SkString.cpp b/src/core/SkString.cpp
index 49182ea..f461a7a 100644
--- a/src/core/SkString.cpp
+++ b/src/core/SkString.cpp
@@ -317,6 +317,15 @@ SkString& SkString::operator=(const SkString& src) {
return *this;
}
+SkString& SkString::operator=(const char text[]) {
+ this->validate();
+
+ SkString tmp(text);
+ this->swap(tmp);
+
+ return *this;
+}
+
void SkString::reset() {
this->validate();