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

Unified Diff: Source/core/loader/cache/CachedScript.cpp

Issue 18753002: Fix a warning from Clang's -Wlogical-not-parentheses: logical not used to be applied to the left ha… (Closed) Base URL: http://src.chromium.org/blink/trunk/
Patch Set: Created 7 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/cache/CachedScript.cpp
===================================================================
--- Source/core/loader/cache/CachedScript.cpp (revision 153522)
+++ Source/core/loader/cache/CachedScript.cpp (working copy)
@@ -86,7 +86,7 @@
bool CachedScript::mimeTypeAllowedByNosniff() const
{
- return !parseContentTypeOptionsHeader(m_response.httpHeaderField("X-Content-Type-Options")) == ContentTypeOptionsNosniff || MIMETypeRegistry::isSupportedJavaScriptMIMEType(mimeType());
+ return !(parseContentTypeOptionsHeader(m_response.httpHeaderField("X-Content-Type-Options")) == ContentTypeOptionsNosniff) || MIMETypeRegistry::isSupportedJavaScriptMIMEType(mimeType());
jochen (gone - plz use gerrit) 2013/07/05 07:43:12 why not just != ?
}
void CachedScript::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698