Changeset 45883 in webkit


Ignore:
Timestamp:
Jul 14, 2009 5:05:12 PM (15 years ago)
Author:
bfulgham@webkit.org
Message:

2009-07-14 Zoltan Horvath <hzoltan@inf.u-szeged.hu>

Reviewed by Darin Adler.

Add NoncopyableCustomAllocated to Noncopyable.h.
https://bugs.webkit.org/show_bug.cgi?id=27228


Some classes which inherited from Noncopyable overrides operator new
since Noncopyable'll be inherited from FastAllocBase, Noncopyable.h
needs to be extended with this new class to support the overriding.

  • wtf/Noncopyable.h: (WTFNoncopyable::NoncopyableCustomAllocated::NoncopyableCustomAllocated): (WTFNoncopyable::NoncopyableCustomAllocated::~NoncopyableCustomAllocated):
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r45881 r45883  
     12009-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
    1162009-07-14  Zoltan Horvath  <hzoltan@inf.u-szeged.hu>
    217
  • trunk/JavaScriptCore/wtf/Noncopyable.h

    r35900 r45883  
    2525// namespace when you use Noncopyable, so put it in its own namespace.
    2626
     27#include "FastAllocBase.h"
     28
    2729namespace WTFNoncopyable {
    2830
     
    3537    };
    3638
     39    class NoncopyableCustomAllocated {
     40        NoncopyableCustomAllocated(const NoncopyableCustomAllocated&);
     41        NoncopyableCustomAllocated& operator=(const NoncopyableCustomAllocated&);
     42    protected:
     43        NoncopyableCustomAllocated() { }
     44        ~NoncopyableCustomAllocated() { }
     45    };
     46
    3747} // namespace WTFNoncopyable
    3848
    3949using WTFNoncopyable::Noncopyable;
     50using WTFNoncopyable::NoncopyableCustomAllocated;
    4051
    4152#endif // WTF_Noncopyable_h
Note: See TracChangeset for help on using the changeset viewer.