Repository navigation
Commit 589918a
committed
Use WTF::makeUnique<T>() instead of .reset(new T())
https://bugs.webkit.org/show_bug.cgi?id=302577
rdar://164798897
Reviewed by Chris Dumez.
This improves exception safety and aligns with modern C++ practices.
Test: Tools/TestWebKitAPI/Tests/WebKitCocoa/WebPushDaemon.mm
* Source/JavaScriptCore/dfg/DFGCSEPhase.cpp:
* Source/WebCore/platform/video-codecs/cocoa/RTCVideoDecoderVTBAV1.mm:
(-[RTCVideoDecoderVTBAV1 decodeData:size:timeStamp:]):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/WebPushDaemon.mm:
Canonical link: https://commits.webkit.org/303087@main1 parent f6c59e7 commit 589918a
2 files changed
Lines changed: 3 additions & 3 deletions
File tree
- Source/JavaScriptCore/dfg
- Tools/TestWebKitAPI/Tests/WebKitCocoa
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
910 | 910 | | |
911 | 911 | | |
912 | 912 | | |
913 | | - | |
| 913 | + | |
914 | 914 | | |
915 | 915 | | |
916 | | - | |
| 916 | + | |
917 | 917 | | |
918 | 918 | | |
919 | 919 | | |
| |||
0 commit comments