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

Unified Diff: Source/core/page/UserContentURLPattern.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/page/Chrome.cpp ('k') | Source/core/page/WindowFeatures.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/UserContentURLPattern.cpp
diff --git a/Source/core/page/UserContentURLPattern.cpp b/Source/core/page/UserContentURLPattern.cpp
index 18fb2a7021e5056d2459b2aa92bb91739265654e..4f18ab875ace2fab6465886524f194ed4fdd6cbe 100644
--- a/Source/core/page/UserContentURLPattern.cpp
+++ b/Source/core/page/UserContentURLPattern.cpp
@@ -67,7 +67,7 @@ bool UserContentURLPattern::parse(const String& pattern)
DEFINE_STATIC_LOCAL(const String, schemeSeparator, ("://"));
size_t schemeEndPos = pattern.find(schemeSeparator);
- if (schemeEndPos == notFound)
+ if (schemeEndPos == kNotFound)
return false;
m_scheme = pattern.left(schemeEndPos);
@@ -82,7 +82,7 @@ bool UserContentURLPattern::parse(const String& pattern)
pathStartPos = hostStartPos;
else {
size_t hostEndPos = pattern.find("/", hostStartPos);
- if (hostEndPos == notFound)
+ if (hostEndPos == kNotFound)
return false;
m_host = pattern.substring(hostStartPos, hostEndPos - hostStartPos);
@@ -99,7 +99,7 @@ bool UserContentURLPattern::parse(const String& pattern)
}
// No other '*' can occur in the host.
- if (m_host.find("*") != notFound)
+ if (m_host.find("*") != kNotFound)
return false;
pathStartPos = hostEndPos;
« no previous file with comments | « Source/core/page/Chrome.cpp ('k') | Source/core/page/WindowFeatures.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698