Add a releaseRef method to COMPtr which matches the behavior
of the method by the same name in PassRefPtr. This is in
preparation of adding autogenerated COM DOM bindings.
* platform/win/COMPtr.h:
(COMPtr::releaseRef):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27367
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-11-01 Sam Weinig <sam@webkit.org>
+
+ Reviewed by Adam Roben.
+
+ Add a releaseRef method to COMPtr which matches the behavior
+ of the method by the same name in PassRefPtr. This is in
+ preparation of adding autogenerated COM DOM bindings.
+
+ * platform/win/COMPtr.h:
+ (COMPtr::releaseRef):
+
2007-11-01 Kevin Ollivier <kevino@theolliviers.com>
wx impl. for DragController and EventHandler interfaces.
~COMPtr() { if (m_ptr) m_ptr->Release(); }
T* get() const { return m_ptr; }
+ T* releaseRef() { T* tmp = m_ptr; m_ptr = 0; return tmp; }
T& operator*() const { return *m_ptr; }
T* operator->() const { return m_ptr; }