Add a PassOwnArrayPtr class that does for OwnArrayPtr what PassOwnPtr does for OwnPtr.
Created attachment 65447 [details] Patch
Comment on attachment 65447 [details] Patch Do we want an analog to adoptPtr?
Attachment 65447 [details] did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1 JavaScriptCore/wtf/OwnArrayPtr.h:25: Alphabetical sorting problem. [build/include_order] [4] JavaScriptCore/wtf/OwnArrayPtr.h:34: Code inside a namespace should not be indented. [whitespace/indent] [4] JavaScriptCore/wtf/OwnArrayPtrCommon.h:26: #ifndef header guard has wrong style, please use: OwnArrayPtrCommon_h [build/header_guard] [5] JavaScriptCore/wtf/OwnArrayPtrCommon.h:31: Code inside a namespace should not be indented. [whitespace/indent] [4] JavaScriptCore/wtf/PassOwnArrayPtr.h:26: #ifndef header guard has wrong style, please use: PassOwnArrayPtr_h [build/header_guard] [5] JavaScriptCore/wtf/PassOwnArrayPtr.h:38: Code inside a namespace should not be indented. [whitespace/indent] [4] Total errors found: 6 in 13 files If any of these errors are false positives, please file a bug against check-webkit-style.
(In reply to comment #2) > (From update of attachment 65447 [details]) > Do we want an analog to adoptPtr? The patch adds adoptArrayPtr.
Attachment 65447 [details] did not build on qt: Build output: http://queues.webkit.org/results/3800284
Sam, you should probably fix the style complaints and the Qt breakage.
Landed in r66139.