Bug 153705

Summary: Use std::make_unique<> when creating an unique_ptr object
Product: WebKit Reporter: Gyuyoung Kim <gyuyoung.kim>
Component: New BugsAssignee: Gyuyoung Kim <gyuyoung.kim>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch for landing none

Description Gyuyoung Kim 2016-01-30 05:01:45 PST
Some factory functions have used std::unique_ptr<> instead of std::make_unique<>. In those cases we need to use std::make_unique<> directly.
Comment 1 Gyuyoung Kim 2016-01-30 05:05:41 PST
Created attachment 270305 [details]
Patch
Comment 2 Darin Adler 2016-01-30 11:25:26 PST
Comment on attachment 270305 [details]
Patch

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

> Source/WebCore/platform/cf/RunLoopObserver.h:41
> +    // WEBCORE_EXPORT static std::unique_ptr<RunLoopObserver> create(CFIndex order, RunLoopObserverCallback callback);

We should not keep this commented out code.
Comment 3 Gyuyoung Kim 2016-01-30 20:34:31 PST
Created attachment 270336 [details]
Patch for landing
Comment 4 Gyuyoung Kim 2016-01-30 20:35:13 PST
(In reply to comment #2)
> Comment on attachment 270305 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=270305&action=review
> 
> > Source/WebCore/platform/cf/RunLoopObserver.h:41
> > +    // WEBCORE_EXPORT static std::unique_ptr<RunLoopObserver> create(CFIndex order, RunLoopObserverCallback callback);
> 
> We should not keep this commented out code.

Oops. Removed.
Comment 5 WebKit Commit Bot 2016-01-31 03:41:52 PST
Comment on attachment 270336 [details]
Patch for landing

Clearing flags on attachment: 270336

Committed r195925: <http://trac.webkit.org/changeset/195925>
Comment 6 WebKit Commit Bot 2016-01-31 03:41:56 PST
All reviewed patches have been landed.  Closing bug.