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

Unified Diff: Source/wtf/text/TextPosition.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/StringImpl.cpp ('k') | Source/wtf/text/WTFString.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/text/TextPosition.cpp
diff --git a/Source/wtf/text/TextPosition.cpp b/Source/wtf/text/TextPosition.cpp
index a44c24bf05039edd1c24066875ab7c68a2d7515e..34e6875e9d452d7f9bd183857f9972b91d87223d 100644
--- a/Source/wtf/text/TextPosition.cpp
+++ b/Source/wtf/text/TextPosition.cpp
@@ -37,7 +37,7 @@ PassOwnPtr<Vector<unsigned> > lineEndings(const String& text)
unsigned start = 0;
while (start < text.length()) {
size_t lineEnd = text.find('\n', start);
- if (lineEnd == notFound)
+ if (lineEnd == kNotFound)
break;
result->append(static_cast<unsigned>(lineEnd));
« no previous file with comments | « Source/wtf/text/StringImpl.cpp ('k') | Source/wtf/text/WTFString.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698