Bug 143941

Summary: Remove all the remaining uses of OwnPtr and PassOwnPtr in JavaScriptCore
Product: WebKit Reporter: Darin Adler <darin>
Component: JavaScriptCoreAssignee: Darin Adler <darin>
Status: RESOLVED FIXED    
Severity: Normal CC: gyuyoung.kim
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 128007    
Attachments:
Description Flags
Patch gyuyoung.kim: review+

Description Darin Adler 2015-04-19 22:08:47 PDT
Remove all the remaining uses of OwnPtr and PassOwnPtr in JavaScriptCore
Comment 1 Darin Adler 2015-04-19 22:15:45 PDT
Created attachment 251141 [details]
Patch
Comment 2 Darin Adler 2015-04-19 22:16:21 PDT
I looked and found we were almost done!
Comment 3 Darin Adler 2015-04-19 22:17:59 PDT
*** Bug 139018 has been marked as a duplicate of this bug. ***
Comment 4 Gyuyoung Kim 2015-04-19 22:54:59 PDT
Comment on attachment 251141 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=251141&action=review

LGTM.

> Source/JavaScriptCore/API/ObjCCallbackFunction.mm:406
> +        m_instanceClass = nil;

nullptr ?
Comment 5 Darin Adler 2015-04-19 23:05:29 PDT
(In reply to comment #4)
> > Source/JavaScriptCore/API/ObjCCallbackFunction.mm:406
> > +        m_instanceClass = nil;
> 
> nullptr ?

No, I think nil is right for this. Class is a pointer to an Objective-C object, although its type name does not look like the others, such as NSObject *.
Comment 6 Darin Adler 2015-04-19 23:06:37 PDT
Committed r183005: <http://trac.webkit.org/changeset/183005>