Bug 291592
| Summary: | [Safer CPP] Address UnretainedLambdaCapturesChecker warnings in PDFAnnotationTypeHelpers.mm | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Abrar Rahman Protyasha <a_protyasha> |
| Component: | New Bugs | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/149332108>
Abrar Rahman Protyasha
Pull request: https://github.com/WebKit/WebKit/pull/44124
EWS
Committed 293745@main (07ef022d64f0): <https://commits.webkit.org/293745@main>
Reviewed commits have been landed. Closing PR #44124 and removing active labels.