Bug 1234542 - Don't use fallible Add in SetStringProperty. r=froydnj

--HG--
extra : rebase_source : 697c493e0150953f6a8fb152109ef228673f15a0
This commit is contained in:
Bogdan Postelnicu 2016-01-04 07:14:00 -05:00
parent c6013bd937
commit a2071162e7

View File

@ -524,7 +524,7 @@ nsPersistentProperties::SetStringProperty(const nsACString& aKey,
{
const nsAFlatCString& flatKey = PromiseFlatCString(aKey);
auto entry = static_cast<PropertyTableEntry*>
(mTable.Add(flatKey.get(), mozilla::fallible));
(mTable.Add(flatKey.get()));
if (entry->mKey) {
aOldValue = entry->mValue;