зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 0e27121698e4 (bug 1316119) for a11y failures a=backout CLOSED TREE
This commit is contained in:
Родитель
d8a0141e5f
Коммит
dcbb82b42b
|
@ -115,22 +115,6 @@ public:
|
|||
return ent->mData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add key to the table if not already present, and return a reference to its
|
||||
* value. If key is not already in the table then the value is default
|
||||
* constructed.
|
||||
*/
|
||||
DataType& GetOrInsert(const KeyType& aKey)
|
||||
{
|
||||
EntryType* ent = this->GetEntry(aKey);
|
||||
if (ent) {
|
||||
return ent->mData;
|
||||
}
|
||||
|
||||
ent = this->PutEntry(aKey);
|
||||
return ent->mData;
|
||||
}
|
||||
|
||||
/**
|
||||
* put a new value for the associated key
|
||||
* @param aKey the key to put
|
||||
|
|
Загрузка…
Ссылка в новой задаче