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

Unified Diff: include/core/SkString.h

Issue 1304833004: Document SkString::resize(int) as destructive. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 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 | no next file » | 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 ea73e0982389eba2e2fcf050b2485f608ea3c9a9..9229d808a63d00ab79e758d249f5cd08952daf41 100644
--- a/include/core/SkString.h
+++ b/include/core/SkString.h
@@ -178,6 +178,7 @@ public:
char& operator[](size_t n) { return this->writable_str()[n]; }
void reset();
+ /** Destructive resize, does not preserve contents. */
void resize(size_t len) { this->set(NULL, len); }
void set(const SkString& src) { *this = src; }
void set(const char text[]);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698