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.
This commit is contained in:
Nathan Froyd 2017-06-06 21:06:17 -04:00
Родитель cb5ef308b6
Коммит cee39716e5
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -157,7 +157,7 @@ nsRefPtrHashtable<KeyClass, PtrType>::Put(KeyType aKey,
already_AddRefed<PtrType> 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;