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

@@ -232,7 +232,6 @@ HTMLFrameSetElement::ParseRowCol(const nsAString & aValue,
commaX = spec.FindChar(sComma, commaX + 1);
}
static const fallible_t fallible = fallible_t();
nsFramesetSpec* specs = new (fallible) nsFramesetSpec[count];
if (!specs) {
*aSpecs = nullptr;