Changeset 20500 in webkit for trunk/JavaScriptCore/wtf


Ignore:
Timestamp:
Mar 26, 2007, 4:52:40 PM (18 years ago)
Author:
beidson
Message:

Rubberstamped by Anders and Maciej aand Geoff (oh my!)


Since CFTypeRef is really void*, a RetainPtr couldn't be used.
RefType was "void", which doesn't actually exist as a type.
Since RefType only existed for operator*(), and since that operator
doesn't make any sense for RetainPtr, I removed them!

  • kjs/nodes.cpp: Touch this to force a rebuild and (hopefully) help the compiler with dependencies
  • wtf/RetainPtr.h: Nuke RefType and operator*()
File:
1 edited

Legend:

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

    r20476 r20500  
    5858        typedef typename RemovePointer<T>::type ValueType;
    5959        typedef ValueType* PtrType;
    60         typedef ValueType& RefType;
    6160
    6261        RetainPtr() : m_ptr(0) {}
     
    7675        PtrType releaseRef() { PtrType tmp = m_ptr; m_ptr = 0; return tmp; }
    7776       
    78         RefType operator*() const { return *m_ptr; }
    7977        PtrType operator->() const { return m_ptr; }
    8078       
Note: See TracChangeset for help on using the changeset viewer.