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

Unified Diff: Source/core/css/CSSSelector.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/css/CSSParser-in.cpp ('k') | Source/core/css/CSSSelectorList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSSelector.cpp
diff --git a/Source/core/css/CSSSelector.cpp b/Source/core/css/CSSSelector.cpp
index a0cc26e99a1c6d0ad41c038f6710dec9e25e14ce..e97024769da35798a5cc965ea80a05c96f0b78e3 100644
--- a/Source/core/css/CSSSelector.cpp
+++ b/Source/core/css/CSSSelector.cpp
@@ -889,7 +889,7 @@ bool CSSSelector::RareData::parseNth()
m_b = 0;
} else {
size_t n = argument.find('n');
- if (n != notFound) {
+ if (n != kNotFound) {
if (argument[0] == '-') {
if (n == 1)
m_a = -1; // -n == -1n
@@ -901,11 +901,11 @@ bool CSSSelector::RareData::parseNth()
m_a = argument.substring(0, n).toInt();
size_t p = argument.find('+', n);
- if (p != notFound)
+ if (p != kNotFound)
m_b = argument.substring(p + 1, argument.length() - p - 1).toInt();
else {
p = argument.find('-', n);
- if (p != notFound)
+ if (p != kNotFound)
m_b = -argument.substring(p + 1, argument.length() - p - 1).toInt();
}
} else
« no previous file with comments | « Source/core/css/CSSParser-in.cpp ('k') | Source/core/css/CSSSelectorList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698