Commit 8abf9702 authored by weinig@apple.com's avatar weinig@apple.com

Add a using declaration for WKRetainPtr matching what we do for our

other smart pointers and fix the destructor.

Reviewed by Anders Carlsson.

* UIProcess/API/cpp/WKRetainPtr.h:
(WebKit::WKRetainPtr::~WKRetainPtr):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@60379 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 831342d8
2010-05-28 Sam Weinig <sam@webkit.org>
Reviewed by Anders Carlsson.
Add a using declaration for WKRetainPtr matching what we do for our
other smart pointers and fix the destructor.
* UIProcess/API/cpp/WKRetainPtr.h:
(WebKit::WKRetainPtr::~WKRetainPtr):
2010-05-25 Ada Chan <adachan@apple.com>
Reviewed by Darin Adler.
......
......@@ -87,7 +87,7 @@ public:
WKRetain(ptr);
}
~RetainPtr()
~WKRetainPtr()
{
if (PtrType ptr = m_ptr)
WKRelease(ptr);
......@@ -211,4 +211,6 @@ template <typename T, typename U> inline bool operator!=(T* a, const WKRetainPtr
} // namespace WebKit
using WebKit::WKRetainPtr;
#endif // WKRetainPtr_h
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