Deploy smart pointers.
Created attachment 426197 [details] Patch
Comment on attachment 426197 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=426197&action=review > Source/WebCore/editing/CompositeEditCommand.cpp:1013 > + ([&]() { Are the parethesis necessary? I think just doing [&] { ... }(); works.
Also you could consider making it an informatively named lambda, just for documentation purposes.
(In reply to Antti Koivisto from comment #2) > Comment on attachment 426197 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=426197&action=review > > > Source/WebCore/editing/CompositeEditCommand.cpp:1013 > > + ([&]() { > > Are the parethesis necessary? I think just doing > > [&] { > ... > }(); > > works. That's a good point. Will change.
Created attachment 426200 [details] Patch for landing
(In reply to Antti Koivisto from comment #3) > Also you could consider making it an informatively named lambda, just for > documentation purposes. Will do.
Committed r276131 (236626@main): <https://commits.webkit.org/236626@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 426200 [details].
<rdar://problem/77110130>