Bug 1126593 - Add a global fallible instance, so that using fallible works directly, everywhere. r=njn

This commit is contained in:
Mike Hommey
2015-01-28 18:00:40 +09:00
parent 9cf4b63c4e
commit 715db83e04
97 changed files with 358 additions and 262 deletions

View File

@@ -1609,7 +1609,7 @@ WebSocketChannel::ProcessInput(uint8_t *buffer, uint32_t count)
utf8Data.Length()));
} else {
if (!utf8Data.Assign((const char *)payload, payloadLength,
mozilla::fallible_t())) {
mozilla::fallible)) {
return NS_ERROR_OUT_OF_MEMORY;
}
}
@@ -1719,7 +1719,7 @@ WebSocketChannel::ProcessInput(uint8_t *buffer, uint32_t count)
binaryData.Length()));
} else {
if (!binaryData.Assign((const char *)payload, payloadLength,
mozilla::fallible_t())) {
mozilla::fallible)) {
return NS_ERROR_OUT_OF_MEMORY;
}
}