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

Unified Diff: Source/core/html/parser/HTMLFormattingElementList.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
Index: Source/core/html/parser/HTMLFormattingElementList.cpp
diff --git a/Source/core/html/parser/HTMLFormattingElementList.cpp b/Source/core/html/parser/HTMLFormattingElementList.cpp
index de76f9b0998d5d8ac3f9d2c2ef6b03a206f0d06b..34215d75e2648ad90c189a8c8450f20a15fa6e8a 100644
--- a/Source/core/html/parser/HTMLFormattingElementList.cpp
+++ b/Source/core/html/parser/HTMLFormattingElementList.cpp
@@ -65,7 +65,7 @@ bool HTMLFormattingElementList::contains(Element* element)
HTMLFormattingElementList::Entry* HTMLFormattingElementList::find(Element* element)
{
size_t index = m_entries.reverseFind(element);
- if (index != notFound) {
+ if (index != kNotFound) {
// This is somewhat of a hack, and is why this method can't be const.
return &m_entries[index];
}
@@ -75,7 +75,7 @@ HTMLFormattingElementList::Entry* HTMLFormattingElementList::find(Element* eleme
HTMLFormattingElementList::Bookmark HTMLFormattingElementList::bookmarkFor(Element* element)
{
size_t index = m_entries.reverseFind(element);
- ASSERT(index != notFound);
+ ASSERT(index != kNotFound);
return Bookmark(&at(index));
}
@@ -103,7 +103,7 @@ void HTMLFormattingElementList::append(PassRefPtr<HTMLStackItem> item)
void HTMLFormattingElementList::remove(Element* element)
{
size_t index = m_entries.reverseFind(element);
- if (index != notFound)
+ if (index != kNotFound)
m_entries.remove(index);
}
« no previous file with comments | « Source/core/html/canvas/WebGLRenderingContext.cpp ('k') | Source/core/html/parser/HTMLMetaCharsetParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698