Bug 1288038 - Make fallible nsBaseHashtable::Put use fallible nsTHashtable::PutEntry. r=froydnj
☠☠ backed out by 221b74c48363 ☠ ☠
authorCameron McCormack <cam@mcc.id.au>
Fri, 29 Jul 2016 11:33:33 +0800
changeset 332534 6271fac418d65ac5256583501bc84c865d17a943
parent 332533 c761bfb5fd83eb0d767adbf34012b7dda384dce9
child 332535 786521deead2bb8607d806ed77562baf4783b318
push id9858
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 14:37:10 +0000
treeherdermozilla-aurora@203106ef6cb6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1288038
milestone50.0a1
Bug 1288038 - Make fallible nsBaseHashtable::Put use fallible nsTHashtable::PutEntry. r=froydnj MozReview-Commit-ID: 8N32oU4V5zh
xpcom/glue/nsBaseHashtable.h
--- a/xpcom/glue/nsBaseHashtable.h
+++ b/xpcom/glue/nsBaseHashtable.h
@@ -125,17 +125,17 @@ public:
     if (!Put(aKey, aData, mozilla::fallible)) {
       NS_ABORT_OOM(this->mTable.EntrySize() * this->mTable.EntryCount());
     }
   }
 
   MOZ_MUST_USE bool Put(KeyType aKey, const UserDataType& aData,
                         const fallible_t&)
   {
-    EntryType* ent = this->PutEntry(aKey);
+    EntryType* ent = this->PutEntry(aKey, mozilla::fallible);
     if (!ent) {
       return false;
     }
 
     ent->mData = aData;
 
     return true;
   }