Skip to content

Commit

Permalink
Bug 777292 - Add default cases to switches on nsresult; r=ehsan
Browse files Browse the repository at this point in the history
  • Loading branch information
ayg committed Jul 27, 2012
1 parent 22f3c50 commit 6e58958
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docshell/base/nsDocShell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4140,6 +4140,8 @@ nsDocShell::DisplayLoadError(nsresult aError, nsIURI *aURI,
// Broken Content Detected. e.g. Content-MD5 check failure.
error.AssignLiteral("corruptedContentError");
break;
default:
break;
}
}

Expand Down
4 changes: 2 additions & 2 deletions js/xpconnect/src/XPCWrappedJSClass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ JSBool xpc_IsReportableErrorCode(nsresult code)
case NS_ERROR_FACTORY_REGISTER_AGAIN:
case NS_BASE_STREAM_WOULD_BLOCK:
return false;
default:
return true;
}

return true;
}

// static
Expand Down

0 comments on commit 6e58958

Please sign in to comment.