Commit 25b1cbdd authored by beidson's avatar beidson

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*()


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20500 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 56377c9d
2007-03-26 Brady Eidson <beidson@apple.com>
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*()
2007-03-26 Geoffrey Garen <ggaren@apple.com>
Touched a file to (hopefully) help the compiler with RetainPtr dependencies.
......
......@@ -144,7 +144,7 @@ void Node::ref()
void Node::deref()
{
ASSERT(!newNodes || !newNodes->contains(this));
if (!nodeExtraRefCounts) {
delete this;
return;
......
......@@ -57,7 +57,6 @@ namespace WTF {
public:
typedef typename RemovePointer<T>::type ValueType;
typedef ValueType* PtrType;
typedef ValueType& RefType;
RetainPtr() : m_ptr(0) {}
RetainPtr(PtrType ptr) : m_ptr(ptr) { if (ptr) CFRetain(ptr); }
......@@ -75,7 +74,6 @@ namespace WTF {
PtrType releaseRef() { PtrType tmp = m_ptr; m_ptr = 0; return tmp; }
RefType operator*() const { return *m_ptr; }
PtrType operator->() const { return m_ptr; }
bool operator!() const { return !m_ptr; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment