Changeset 45883 in webkit
- Timestamp:
- Jul 14, 2009 5:05:12 PM (15 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r45881 r45883 1 2009-07-14 Zoltan Horvath <hzoltan@inf.u-szeged.hu> 2 3 Reviewed by Darin Adler. 4 5 Add NoncopyableCustomAllocated to Noncopyable.h. 6 https://bugs.webkit.org/show_bug.cgi?id=27228 7 8 Some classes which inherited from Noncopyable overrides operator new 9 since Noncopyable'll be inherited from FastAllocBase, Noncopyable.h 10 needs to be extended with this new class to support the overriding. 11 12 * wtf/Noncopyable.h: 13 (WTFNoncopyable::NoncopyableCustomAllocated::NoncopyableCustomAllocated): 14 (WTFNoncopyable::NoncopyableCustomAllocated::~NoncopyableCustomAllocated): 15 1 16 2009-07-14 Zoltan Horvath <hzoltan@inf.u-szeged.hu> 2 17 -
trunk/JavaScriptCore/wtf/Noncopyable.h
r35900 r45883 25 25 // namespace when you use Noncopyable, so put it in its own namespace. 26 26 27 #include "FastAllocBase.h" 28 27 29 namespace WTFNoncopyable { 28 30 … … 35 37 }; 36 38 39 class NoncopyableCustomAllocated { 40 NoncopyableCustomAllocated(const NoncopyableCustomAllocated&); 41 NoncopyableCustomAllocated& operator=(const NoncopyableCustomAllocated&); 42 protected: 43 NoncopyableCustomAllocated() { } 44 ~NoncopyableCustomAllocated() { } 45 }; 46 37 47 } // namespace WTFNoncopyable 38 48 39 49 using WTFNoncopyable::Noncopyable; 50 using WTFNoncopyable::NoncopyableCustomAllocated; 40 51 41 52 #endif // WTF_Noncopyable_h
Note: See TracChangeset
for help on using the changeset viewer.