зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
cb5ef308b6
Коммит
cee39716e5
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче