Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1491)

Unified Diff: include/core/SkString.h

Issue 1672123002: Make SkString movable. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Don't need 'this' on 'f' fields. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/core/SkString.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkString.h
diff --git a/include/core/SkString.h b/include/core/SkString.h
index 93514f2659febb67a6588cdc214595f278c825a4..4625dd13ccaade648262ccc57b56b33253164eaa 100644
--- a/include/core/SkString.h
+++ b/include/core/SkString.h
@@ -126,6 +126,7 @@ public:
explicit SkString(const char text[]);
SkString(const char text[], size_t len);
SkString(const SkString&);
+ SkString(SkString&&);
~SkString();
bool isEmpty() const { return 0 == fRec->fLength; }
@@ -172,6 +173,7 @@ public:
// these methods edit the string
SkString& operator=(const SkString&);
+ SkString& operator=(SkString&&);
SkString& operator=(const char text[]);
char* writable_str();
« no previous file with comments | « no previous file | src/core/SkString.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698