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

Unified Diff: Source/core/platform/network/HTTPParsers.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/mediastream/MediaStreamSource.cpp ('k') | Source/core/platform/network/MIMEHeader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/network/HTTPParsers.cpp
diff --git a/Source/core/platform/network/HTTPParsers.cpp b/Source/core/platform/network/HTTPParsers.cpp
index 979dd267357229f67bec292e70d05408f129e0e1..cc2b296921d96bd1c1bd905dca36f96f0c0e7737 100644
--- a/Source/core/platform/network/HTTPParsers.cpp
+++ b/Source/core/platform/network/HTTPParsers.cpp
@@ -246,7 +246,7 @@ String filenameFromHTTPContentDisposition(const String& value)
unsigned length = keyValuePairs.size();
for (unsigned i = 0; i < length; i++) {
size_t valueStartPos = keyValuePairs[i].find('=');
- if (valueStartPos == notFound)
+ if (valueStartPos == kNotFound)
continue;
String key = keyValuePairs[i].left(valueStartPos).stripWhiteSpace();
@@ -318,7 +318,7 @@ void findCharsetInMediaType(const String& mediaType, unsigned int& charsetPos, u
while (pos < length) {
pos = mediaType.find("charset", pos, false);
- if (pos == notFound || pos == 0) {
+ if (pos == kNotFound || !pos) {
charsetLen = 0;
return;
}
« no previous file with comments | « Source/core/platform/mediastream/MediaStreamSource.cpp ('k') | Source/core/platform/network/MIMEHeader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698