mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Bug 1123237 - Part 10. Expose SwapElements from nsBaseHashtable. r=nfroyd
This commit is contained in:
parent
a7b59a69fb
commit
ab9d4cc8c0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user