Changeset 21468 in webkit for trunk/JavaScriptCore/wtf
- Timestamp:
- May 14, 2007, 5:20:16 PM (18 years ago)
- Location:
- trunk/JavaScriptCore/wtf
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/HashMap.h
r18203 r21468 68 68 HashMap& operator=(const HashMap&); 69 69 ~HashMap(); 70 71 void swap(HashMap&); 70 72 71 73 int size() const; … … 177 179 { 178 180 HashMap tmp(other); 179 m_impl.swap(tmp.m_impl);181 swap(tmp); 180 182 return *this; 183 } 184 185 template<typename T, typename U, typename V, typename W, typename X> 186 inline void HashMap<T, U, V, W, X>::swap(HashMap& other) 187 { 188 m_impl.swap(other.m_impl); 181 189 } 182 190 -
trunk/JavaScriptCore/wtf/HashSet.h
r17127 r21468 58 58 HashSet& operator=(const HashSet&); 59 59 ~HashSet(); 60 61 void swap(HashSet&); 60 62 61 63 int size() const; … … 183 185 { 184 186 HashSet tmp(other); 185 m_impl.swap(tmp.m_impl);187 swap(other); 186 188 return *this; 189 } 190 191 template<typename T, typename U, typename V> 192 inline void HashSet<T, U, V>::swap(HashSet& other) 193 { 194 m_impl.swap(other.m_impl); 187 195 } 188 196
Note:
See TracChangeset
for help on using the changeset viewer.