mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 815671 part 9. Fix hashtables to take a UserDataType reference on put, so that putting an array works. r=bsmedberg
This commit is contained in:
parent
9251d645a5
commit
e555fcedb4
@ -136,13 +136,13 @@ public:
|
||||
* @param aData the new data
|
||||
* @return always true, unless memory allocation failed
|
||||
*/
|
||||
void Put(KeyType aKey, UserDataType aData)
|
||||
void Put(KeyType aKey, const UserDataType& aData)
|
||||
{
|
||||
if (!Put(aKey, aData, fallible_t()))
|
||||
NS_RUNTIMEABORT("OOM");
|
||||
}
|
||||
|
||||
bool Put(KeyType aKey, UserDataType aData, const fallible_t&) NS_WARN_UNUSED_RESULT
|
||||
bool Put(KeyType aKey, const UserDataType& aData, const fallible_t&) NS_WARN_UNUSED_RESULT
|
||||
{
|
||||
EntryType* ent = this->PutEntry(aKey);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user