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

Unified Diff: base/string_piece.h

Issue 249363004: Revert of Style cleanup in preparation for auto-linting base/. (Closed)
Patch Set: Created 6 years, 8 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 | « base/stats_table_unittest.cc ('k') | base/sync_socket_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/string_piece.h
diff --git a/base/string_piece.h b/base/string_piece.h
index 5b4bf40e0b59d14ed705097fde52c93c4dd2a47b..47d49684548f62d99b9ce7af33947e05cba17ec1 100644
--- a/base/string_piece.h
+++ b/base/string_piece.h
@@ -55,14 +55,8 @@
size_type length() const { return length_; }
bool empty() const { return length_ == 0; }
- void clear() {
- ptr_ = NULL;
- length_ = 0;
- }
- void set(const char* data, size_type len) {
- ptr_ = data;
- length_ = len;
- }
+ void clear() { ptr_ = NULL; length_ = 0; }
+ void set(const char* data, size_type len) { ptr_ = data; length_ = len; }
void set(const char* str) {
ptr_ = str;
length_ = str ? strlen(str) : 0;
« no previous file with comments | « base/stats_table_unittest.cc ('k') | base/sync_socket_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698