Ignore:
Timestamp:
Jan 28, 2009, 12:07:20 PM (16 years ago)
Author:
[email protected]
Message:

Bug 23490: Remove initialRefCount argument from RefCounted class

<https://bugs.webkit.org/show_bug.cgi?id=23490>

Reviewed by Darin Adler.

JavaScriptCore:

RefCountedBase now always starts with a ref count of 1, so there
is no need to pass the initialRefCount into the class anymore.

  • wtf/ByteArray.h: (WTF::ByteArray::ByteArray): Removed call to RefCounted(1).
  • wtf/RefCounted.h: (WTF::RefCountedBase::RefCountedBase): Changed to start with a ref count of 1. (WTF::RefCounted::RefCounted): Removed initialRefCount argument and removed call to RefCounted(1).

WebKit/wx:

FrameLoaderClientWx is no longer a RefCounted class.

  • WebKitSupport/FrameLoaderClientWx.cpp: (WebCore::FrameLoaderClientWx::FrameLoaderClientWx): Removed call to the RefCounted<FrameLoaderClientWx>(0) super constructor.
  • WebKitSupport/FrameLoaderClientWx.h: Don't include RefCounted.h and stop inheriting from RefCounted<FrameLoaderClientWx>.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/RefCounted.h

    r39422 r40319  
    5050
    5151protected:
    52     RefCountedBase(int initialRefCount)
    53         : m_refCount(initialRefCount)
     52    RefCountedBase()
     53        : m_refCount(1)
    5454#ifndef NDEBUG
    5555        , m_deletionHasBegun(false)
     
    8686template<class T> class RefCounted : public RefCountedBase {
    8787public:
    88     RefCounted(int initialRefCount = 1)
    89         : RefCountedBase(initialRefCount)
    90     {
    91     }
    92 
    9388    void deref()
    9489    {
Note: See TracChangeset for help on using the changeset viewer.