diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkString.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/SkString.cpp b/src/core/SkString.cpp index 49182ea77c..f461a7a44a 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(); |