Bug 300158

Summary: Update SQLiteDatabase::prepareStatement() to return a std::unique_ptr instead of an std::expected
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebCore Misc.Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Chris Dumez
Reported 2025-10-03 19:14:38 PDT
Update SQLiteDatabase::prepareStatement() to return a std::unique_ptr instead of an std::expected. Returning a std::expected containing a SQLiteStatement doesn't play nice with Safer CPP static analysis and reports false positives. Using a `std::unique_ptr<SQLiteStatement>` makes static analysis happy without having to make the code more verbose.
Attachments
Chris Dumez
Comment 1 2025-10-03 19:22:14 PDT
EWS
Comment 2 2025-10-05 03:11:14 PDT
Committed 301020@main (a6e7d5013931): <https://commits.webkit.org/301020@main> Reviewed commits have been landed. Closing PR #51798 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2025-10-05 03:13:03 PDT
Radar WebKit Bug Importer
Comment 4 2025-10-05 03:13:04 PDT
Note You need to log in before you can comment on or make changes to this bug.