| Index: Source/wtf/HashMap.h
|
| diff --git a/Source/wtf/HashMap.h b/Source/wtf/HashMap.h
|
| index 3943384ee4948e721c0945d7dad2cc042d4e2fcb..551f14974462058f6d189a6071e70d8a10038c24 100644
|
| --- a/Source/wtf/HashMap.h
|
| +++ b/Source/wtf/HashMap.h
|
| @@ -94,9 +94,15 @@ namespace WTF {
|
| typedef typename HashTableType::AddResult AddResult;
|
|
|
| public:
|
| - void swap(HashMap& other)
|
| + void swap(HashMap& ref)
|
| {
|
| - m_impl.swap(other.m_impl);
|
| + m_impl.swap(ref.m_impl);
|
| + }
|
| +
|
| + void swap(typename Allocator::template OtherType<HashMap>::Type other)
|
| + {
|
| + HashMap& ref = Allocator::getOther(other);
|
| + m_impl.swap(ref.m_impl);
|
| }
|
|
|
| unsigned size() const;
|
|
|