Bug 44752

Summary: RefPtr documentation needs update
Product: WebKit Reporter: Yuta Kitamura <yutak>
Component: WebKit WebsiteAssignee: Darin Adler <darin>
Status: RESOLVED FIXED    
Severity: Normal CC: darin
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
URL: http://webkit.org/coding/RefPtr.html

Yuta Kitamura
Reported 2010-08-27 00:29:34 PDT
adoptRef assertion was turned on (bug 41547), but it seemed that we forgot to update RefPtr documentation (http://webkit.org/coding/RefPtr.html). For example, a few examples contains the following line: RefPtr<Node> a = new Node;
Attachments
Darin Adler
Comment 1 2010-08-27 10:10:36 PDT
That would work fine if Node is a reference counted class that does not derive from RefCounted. The new assertion is specific to RefCounted.
Darin Adler
Comment 2 2010-08-27 10:41:51 PDT
I made some changes in <http://trac.webkit.org/changeset/66233> that I think resolve this.
Note You need to log in before you can comment on or make changes to this bug.