[Webkit-unassigned] [Bug 141923] New: WTF::WeakPtr should have a "forget" method
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Feb 23 13:53:44 PST 2015
https://bugs.webkit.org/show_bug.cgi?id=141923
Bug ID: 141923
Summary: WTF::WeakPtr should have a "forget" method
Classification: Unclassified
Product: WebKit
Version: 528+ (Nightly build)
Hardware: All
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: WebCore Misc.
Assignee: webkit-unassigned at lists.webkit.org
Reporter: bfulgham at webkit.org
Sometimes we need to be able to clear a WeakPtr. Currently, you do so using the default constructor:
m_aWeakPointerToSomething = WeakPtr<Something>();
It would be nicer to be able to write:
m_aWeakPointerToSomething.forget();
With the expectation that the WeakPtr would be 'null' after calling 'forget'.
It should reduce the weak pointer reference count by one on the object being pointed to.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150223/64bb457e/attachment-0002.html>
More information about the webkit-unassigned
mailing list