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

Unified Diff: Source/core/platform/MIMETypeFromURL.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/platform/Length.cpp ('k') | Source/core/platform/graphics/BitmapImage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/MIMETypeFromURL.cpp
diff --git a/Source/core/platform/MIMETypeFromURL.cpp b/Source/core/platform/MIMETypeFromURL.cpp
index 3af401c9d8bcf022744b6ba7afac226d5a8a42d1..74dba93ede225897498291bb8d28c43447409d50 100644
--- a/Source/core/platform/MIMETypeFromURL.cpp
+++ b/Source/core/platform/MIMETypeFromURL.cpp
@@ -37,9 +37,9 @@ String mimeTypeFromDataURL(const String& url)
{
ASSERT(protocolIs(url, "data"));
size_t index = url.find(';');
- if (index == notFound)
+ if (index == kNotFound)
index = url.find(',');
- if (index != notFound) {
+ if (index != kNotFound) {
if (index > 5)
return url.substring(5, index - 5).lower();
return "text/plain"; // Data URLs with no MIME type are considered text/plain.
« no previous file with comments | « Source/core/platform/Length.cpp ('k') | Source/core/platform/graphics/BitmapImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698