[Webkit-unassigned] [Bug 205617] Add makeRefCounted<>

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 2 15:38:58 PST 2020


https://bugs.webkit.org/show_bug.cgi?id=205617

--- Comment #8 from Antti Koivisto <koivisto at iki.fi> ---
(In reply to Anders Carlsson from comment #6)
> It seems like stack-allocating RefCounted would already ASSERT on
> destruction due to the m_adoptionIsRequired checks in place.

Good point!

> That said, shouldn't this function be called makeRefPtr since it actually
> returns a RefPtr, just like makeUnique returns an std::unique_ptr ;)

It is not called makeUniquePtr isn't it?

makeUnique makes a "unique" object and makeRefCounted makes a RefCounted object. Seems logical to me.

-- 
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/20200102/859607c5/attachment-0001.htm>


More information about the webkit-unassigned mailing list