From 254e534d0f022df5df373195465760497ee1945c Mon Sep 17 00:00:00 2001 From: Jason Duell Date: Tue, 13 Sep 2011 15:15:28 -0700 Subject: [PATCH] Bug 686558 - Get rid of gcc warning about "enumeral mismatch" in nsNetUtil.h. r=bz --- netwerk/base/public/nsNetUtil.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/netwerk/base/public/nsNetUtil.h b/netwerk/base/public/nsNetUtil.h index 08e2ed8fc03..b1c1926f703 100644 --- a/netwerk/base/public/nsNetUtil.h +++ b/netwerk/base/public/nsNetUtil.h @@ -1946,9 +1946,9 @@ NS_GetContentDispositionFromHeader(const nsACString& aHeader, nsIChannel *aChan if (NS_FAILED(rv)) { // special case (see bug 272541): empty disposition type handled as "inline" - return rv == NS_ERROR_FIRST_HEADER_FIELD_COMPONENT_EMPTY - ? nsIChannel::DISPOSITION_INLINE - : nsIChannel::DISPOSITION_ATTACHMENT; + if (rv == NS_ERROR_FIRST_HEADER_FIELD_COMPONENT_EMPTY) + return nsIChannel::DISPOSITION_INLINE; + return nsIChannel::DISPOSITION_ATTACHMENT; } return NS_GetContentDispositionFromToken(dispToken);