Bug 1123237 - Part 10. Expose SwapElements from nsBaseHashtable. r=nfroyd

This commit is contained in:
Kan-Ru Chen 2015-08-26 18:54:38 +08:00
Родитель c2a6c6fbdb
Коммит 28c419dcc1
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -297,6 +297,15 @@ public:
return aMallocSizeOf(this) + ShallowSizeOfExcludingThis(aMallocSizeOf);
}
/**
* Swap the elements in this hashtable with the elements in aOther.
*/
void SwapElements(nsBaseHashtable& aOther)
{
nsTHashtable<EntryType>::SwapElements(aOther);
}
#ifdef DEBUG
using nsTHashtable<EntryType>::MarkImmutable;
#endif