On Thu, Jan 12 2023 at 12:35:09 PM -0800, Ryosuke Niwa via webkit-dev <webkit-dev@lists.webkit.org> wrote:
So… instead of:
foo(bar());

do:
foo(RefPtr { bar() }.get());

What's the value of creating a temporary RefPtr just to get at the underlying raw pointer? Isn't this overkill?


_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev

Reply via email to