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

Unified Diff: Source/core/inspector/ContentSearchUtils.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/html/track/WebVTTParser.cpp ('k') | Source/core/inspector/DOMPatchSupport.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/ContentSearchUtils.cpp
diff --git a/Source/core/inspector/ContentSearchUtils.cpp b/Source/core/inspector/ContentSearchUtils.cpp
index 48ecdc4d7cfb2e5c6d424f3921f7f49151f2c6b5..7797e402b72815190dfd675290ad8aa941278b82 100644
--- a/Source/core/inspector/ContentSearchUtils.cpp
+++ b/Source/core/inspector/ContentSearchUtils.cpp
@@ -49,7 +49,7 @@ static String createSearchRegexSource(const String& text)
String specials(regexSpecialCharacters);
for (unsigned i = 0; i < text.length(); i++) {
- if (specials.find(text[i]) != notFound)
+ if (specials.find(text[i]) != kNotFound)
result.append("\\");
result.append(text[i]);
}
@@ -129,7 +129,7 @@ PassRefPtr<TypeBuilder::Array<TypeBuilder::Page::SearchMatch> > searchInTextByLi
static String findMagicComment(const String& content, const String& name, MagicCommentType commentType, bool* deprecated = 0)
{
- ASSERT(name.find("=") == notFound);
+ ASSERT(name.find("=") == kNotFound);
if (deprecated)
*deprecated = false;
String pattern;
@@ -162,7 +162,7 @@ static String findMagicComment(const String& content, const String& name, MagicC
String match = content.substring(offset, matchLength);
size_t separator = match.find("=");
- ASSERT(separator != notFound);
+ ASSERT(separator != kNotFound);
match = match.substring(separator + 1);
switch (commentType) {
@@ -170,7 +170,7 @@ static String findMagicComment(const String& content, const String& name, MagicC
return match.stripWhiteSpace();
case CSSMagicComment: {
size_t lastStarIndex = match.reverseFind('*');
- ASSERT(lastStarIndex != notFound);
+ ASSERT(lastStarIndex != kNotFound);
return match.substring(0, lastStarIndex).stripWhiteSpace();
}
default:
« no previous file with comments | « Source/core/html/track/WebVTTParser.cpp ('k') | Source/core/inspector/DOMPatchSupport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698