Changeset 60738 in webkit for trunk/JavaScriptCore/wtf/Vector.h
- Timestamp:
- Jun 4, 2010, 11:25:50 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/Vector.h
r59463 r60738 700 700 } 701 701 702 inline bool typelessPointersAreEqual(const void* a, const void* b) { return a == b; } 703 702 704 template<typename T, size_t inlineCapacity> 703 705 template<size_t otherCapacity> 704 706 Vector<T, inlineCapacity>& Vector<T, inlineCapacity>::operator=(const Vector<T, otherCapacity>& other) 705 707 { 706 if (&other == this) 707 return *this; 708 708 // If the inline capacities match, we should call the more specific 709 // template. If the inline capacities don't match, the two objects 710 // shouldn't be allocated the same address. 711 ASSERT(!typelessPointersAreEqual(&other, this)); 712 709 713 if (size() > other.size()) 710 714 shrink(other.size());
Note:
See TracChangeset
for help on using the changeset viewer.