From cee39716e559f73b8ee432843758a866c2db153c Mon Sep 17 00:00:00 2001 From: Nathan Froyd Date: Tue, 6 Jun 2017 21:06:17 -0400 Subject: [PATCH] Bug 1370606 - fix fallible nsRefPtrHashtable::Put to really be fallible; r=erahm Calling the infallible PutEntry effectively makes this function infallible, despite Put taking a fallible_t argument. --- xpcom/ds/nsRefPtrHashtable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpcom/ds/nsRefPtrHashtable.h b/xpcom/ds/nsRefPtrHashtable.h index bf81b013d2b9..27e8248a560f 100644 --- a/xpcom/ds/nsRefPtrHashtable.h +++ b/xpcom/ds/nsRefPtrHashtable.h @@ -157,7 +157,7 @@ nsRefPtrHashtable::Put(KeyType aKey, already_AddRefed aData, const mozilla::fallible_t&) { - typename base_type::EntryType* ent = this->PutEntry(aKey); + typename base_type::EntryType* ent = this->PutEntry(aKey, mozilla::fallible); if (!ent) { return false;