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

Unified Diff: Source/core/editing/TextInsertionBaseCommand.h

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/core/editing/InsertTextCommand.cpp ('k') | Source/core/editing/TextIterator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/TextInsertionBaseCommand.h
diff --git a/Source/core/editing/TextInsertionBaseCommand.h b/Source/core/editing/TextInsertionBaseCommand.h
index aa10fcf4d4d5470732168bce5b40a29d3b8a5048..6f2f355593831940936eb748f37885daabebe805 100644
--- a/Source/core/editing/TextInsertionBaseCommand.h
+++ b/Source/core/editing/TextInsertionBaseCommand.h
@@ -53,7 +53,7 @@ void forEachLineInString(const String& string, const LineOperation& operation)
{
unsigned offset = 0;
size_t newline;
- while ((newline = string.find('\n', offset)) != notFound) {
+ while ((newline = string.find('\n', offset)) != kNotFound) {
operation(offset, newline - offset, false);
offset = newline + 1;
}
« no previous file with comments | « Source/core/editing/InsertTextCommand.cpp ('k') | Source/core/editing/TextIterator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698