Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1181)

Unified Diff: Source/wtf/HashMap.h

Issue 131803005: Add more oilpan collections support (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix OtherType for Windows compielr Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« Source/heap/Heap.h ('K') | « Source/wtf/DefaultAllocator.h ('k') | Source/wtf/HashSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698