зеркало из https://github.com/mozilla/pjs.git
Bug 686558 - Get rid of gcc warning about "enumeral mismatch" in nsNetUtil.h. r=bz
This commit is contained in:
Родитель
22ef9265fe
Коммит
254e534d0f
|
@ -1946,9 +1946,9 @@ NS_GetContentDispositionFromHeader(const nsACString& aHeader, nsIChannel *aChan
|
||||||
|
|
||||||
if (NS_FAILED(rv)) {
|
if (NS_FAILED(rv)) {
|
||||||
// special case (see bug 272541): empty disposition type handled as "inline"
|
// special case (see bug 272541): empty disposition type handled as "inline"
|
||||||
return rv == NS_ERROR_FIRST_HEADER_FIELD_COMPONENT_EMPTY
|
if (rv == NS_ERROR_FIRST_HEADER_FIELD_COMPONENT_EMPTY)
|
||||||
? nsIChannel::DISPOSITION_INLINE
|
return nsIChannel::DISPOSITION_INLINE;
|
||||||
: nsIChannel::DISPOSITION_ATTACHMENT;
|
return nsIChannel::DISPOSITION_ATTACHMENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
return NS_GetContentDispositionFromToken(dispToken);
|
return NS_GetContentDispositionFromToken(dispToken);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче