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

Unified Diff: base/string_piece.cc

Issue 8659047: De-duplicate common code from StringPiece, StringPiece16, and their tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
Index: base/string_piece.cc
diff --git a/base/string_piece.cc b/base/string_piece.cc
index bf6291c28075b9e06c0a3a960d1ac959c3408142..69ee391b0e310654c70235519c9dc9e1ba723b0c 100644
--- a/base/string_piece.cc
+++ b/base/string_piece.cc
@@ -209,6 +209,4 @@ StringPiece StringPiece::substr(size_type pos, size_type n) const {
return StringPiece(ptr_ + pos, n);
}
-const StringPiece::size_type StringPiece::npos = size_type(-1);
-
} // namespace base
« base/string_piece.h ('K') | « base/string_piece.h ('k') | base/string_piece_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698