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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.