Bug 291592

Summary: [Safer CPP] Address UnretainedLambdaCapturesChecker warnings in PDFAnnotationTypeHelpers.mm
Product: WebKit Reporter: Abrar Rahman Protyasha <a_protyasha>
Component: New BugsAssignee: Abrar Rahman Protyasha <a_protyasha>
Status: RESOLVED FIXED    
Severity: Normal CC: a_protyasha, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Abrar Rahman Protyasha
Reported 2025-04-15 14:24:36 PDT
The warning being: ``` /Volumes/Data/worker/macOS-Safer-CPP-Checks-EWS/build/Source/WebKit/WebProcess/Plugins/PDF/PDFAnnotationTypeHelpers.mm:87:21: warning: Captured raw-pointer 'annotation' to unretained type is unsafe [alpha.webkit.UnretainedLambdaCapturesChecker] 87 | auto checker = [annotation, converter = WTFMove(converter)](auto&& type) { | ^ ```
Attachments
Radar WebKit Bug Importer
Comment 1 2025-04-15 14:24:45 PDT
Abrar Rahman Protyasha
Comment 2 2025-04-15 16:18:17 PDT
EWS
Comment 3 2025-04-15 19:32:06 PDT
Committed 293745@main (07ef022d64f0): <https://commits.webkit.org/293745@main> Reviewed commits have been landed. Closing PR #44124 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.