[Webkit-unassigned] [Bug 263577] AVVideoCaptureSource::cameraCaptureDeviceTypes() should return a RetainPtr

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 25 09:43:01 PDT 2023


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

--- Comment #3 from Darin Adler <darin at apple.com> ---
I suppose functions returning RetainPtr are unambiguous and harder to use wrong. But also, I would like a discipline where adoptNS is not scattered in code, and kept to the boundaries between our C++ code and the underlying platform code. Maybe we should have a rule that all adoptNS and adoptCF have to be in wrapper files that just wrap the ownership and are part of the platform interface, not in implementation files mixed with other implementation details.

-- 
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/20231025/4604dba0/attachment-0001.htm>


More information about the webkit-unassigned mailing list