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

Unified Diff: Source/core/dom/Document.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/core/dom/CustomElement.cpp ('k') | Source/core/dom/Element.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 15272268388eef0241dba42dea94c43567d6ea78..f08ca4e1406949c5ab9a69ba4f1176c60df1eb52 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -798,7 +798,7 @@ PassRefPtr<CDATASection> Document::createCDATASection(const String& data, Except
es.throwDOMException(NotSupportedError);
return 0;
}
- if (data.find("]]>") != WTF::notFound) {
+ if (data.find("]]>") != WTF::kNotFound) {
es.throwDOMException(InvalidCharacterError, "String cannot contain ']]>' since that is the end delimiter of a CData section.");
return 0;
}
@@ -4959,7 +4959,7 @@ void Document::removeFromTopLayer(Element* element)
if (!element->isInTopLayer())
return;
size_t position = m_topLayerElements.find(element);
- ASSERT(position != notFound);
+ ASSERT(position != kNotFound);
m_topLayerElements.remove(position);
element->setIsInTopLayer(false);
}
« no previous file with comments | « Source/core/dom/CustomElement.cpp ('k') | Source/core/dom/Element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698