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

Unified Diff: Source/core/dom/shadow/ContentDistribution.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/TreeScope.cpp ('k') | Source/core/editing/InputMethodController.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/shadow/ContentDistribution.cpp
diff --git a/Source/core/dom/shadow/ContentDistribution.cpp b/Source/core/dom/shadow/ContentDistribution.cpp
index 83338419459804134a4f441103d7a0104b341c37..e0527ad3945d0ecada94e996796920a0b64fe7ae 100644
--- a/Source/core/dom/shadow/ContentDistribution.cpp
+++ b/Source/core/dom/shadow/ContentDistribution.cpp
@@ -49,7 +49,7 @@ size_t ContentDistribution::find(const Node* node) const
{
HashMap<const Node*, size_t>::const_iterator it = m_indices.find(node);
if (it == m_indices.end())
- return notFound;
+ return kNotFound;
return it.get()->value;
}
@@ -57,7 +57,7 @@ size_t ContentDistribution::find(const Node* node) const
Node* ContentDistribution::nextTo(const Node* node) const
{
size_t index = find(node);
- if (index == notFound || index + 1 == size())
+ if (index == kNotFound || index + 1 == size())
return 0;
return at(index + 1).get();
}
@@ -65,7 +65,7 @@ Node* ContentDistribution::nextTo(const Node* node) const
Node* ContentDistribution::previousTo(const Node* node) const
{
size_t index = find(node);
- if (index == notFound || !index)
+ if (index == kNotFound || !index)
return 0;
return at(index - 1).get();
}
« no previous file with comments | « Source/core/dom/TreeScope.cpp ('k') | Source/core/editing/InputMethodController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698