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

Unified Diff: Source/wtf/text/WTFString.cpp

Issue 23464095: WTF::notFound looks too much like a local variable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 | « Source/wtf/text/WTFString.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/text/WTFString.cpp
diff --git a/Source/wtf/text/WTFString.cpp b/Source/wtf/text/WTFString.cpp
index 9c6bfd8ab84b9f4fc2e18b6a600277f346239b53..1e6ac59ab1bb3620e3106ed63742be36571bc0f0 100644
--- a/Source/wtf/text/WTFString.cpp
+++ b/Source/wtf/text/WTFString.cpp
@@ -681,7 +681,7 @@ void String::split(const String& separator, bool allowEmptyEntries, Vector<Strin
unsigned startPos = 0;
size_t endPos;
- while ((endPos = find(separator, startPos)) != notFound) {
+ while ((endPos = find(separator, startPos)) != kNotFound) {
if (allowEmptyEntries || startPos != endPos)
result.append(substring(startPos, endPos - startPos));
startPos = endPos + separator.length();
@@ -696,7 +696,7 @@ void String::split(UChar separator, bool allowEmptyEntries, Vector<String>& resu
unsigned startPos = 0;
size_t endPos;
- while ((endPos = find(separator, startPos)) != notFound) {
+ while ((endPos = find(separator, startPos)) != kNotFound) {
if (allowEmptyEntries || startPos != endPos)
result.append(substring(startPos, endPos - startPos));
startPos = endPos + 1;
« no previous file with comments | « Source/wtf/text/WTFString.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698