Changeset 30406 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Feb 19, 2008, 11:06:07 AM (17 years ago)
Author:
Darin Adler
Message:

Reviewed by Anders.

  • wtf/RefCounted.h: (WTF::RefCounted::RefCounted): Have refcounts default to 1. This allows us to start removing the explicit initialization of RefCounted from classes and eventually we can remove the ability to have the initial count of 0 entirely.
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r30387 r30406  
     12008-02-19  Darin Adler  <[email protected]>
     2
     3        Reviewed by Anders.
     4
     5        - next step for http://bugs.webkit.org/show_bug.cgi?id=17257
     6          start ref counts at 1 instead of 0 for speed
     7
     8        * wtf/RefCounted.h:
     9        (WTF::RefCounted::RefCounted): Have refcounts default to 1. This allows us to start
     10        removing the explicit initialization of RefCounted from classes and eventually we
     11        can remove the ability to have the initial count of 0 entirely.
     12
    1132008-02-18  Samuel Weinig  <[email protected]>
    214
  • trunk/JavaScriptCore/wtf/RefCounted.h

    r30133 r30406  
    2929template<class T> class RefCounted : Noncopyable {
    3030public:
    31     RefCounted(int initialRefCount)
     31    RefCounted(int initialRefCount = 1)
    3232        : m_refCount(initialRefCount)
    3333#ifndef NDEBUG
Note: See TracChangeset for help on using the changeset viewer.