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:
Boris Zbarsky 2012-11-29 11:14:14 -05:00
parent 9251d645a5
commit e555fcedb4

View File

@ -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);