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: https://svn.webkit.org/repository/webkit/trunk@20500
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+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.
void Node::deref()
{
ASSERT(!newNodes || !newNodes->contains(this));
-
+
if (!nodeExtraRefCounts) {
delete this;
return;
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); }
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; }