Bug 263580 - Use 'auto' when calling a function that returns a RetainPtr<>
Summary: Use 'auto' when calling a function that returns a RetainPtr<>
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-10-23 21:13 PDT by Simon Fraser (smfr)
Modified: 2023-10-23 21:17 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2023-10-23 21:13:35 PDT
Using 'auto' on the LHS of an assignment of the result of a function that returns a RetainPtr<> makes style checking for incorrect RetainPtr use easier.
Comment 1 Radar WebKit Bug Importer 2023-10-23 21:13:51 PDT
<rdar://problem/117389828>
Comment 2 Simon Fraser (smfr) 2023-10-23 21:17:37 PDT
Pull request: https://github.com/WebKit/WebKit/pull/19473