Use Vector<SandboxExtension::Handle> instead of SandboxExtension::HandleArray
Created attachment 435520 [details] Patch
Comment on attachment 435520 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=435520&action=review r=me > Source/WebKit/Shared/Cocoa/SandboxExtensionCocoa.mm:428 > +bool SandboxExtension::consumePermanently(const Vector<SandboxExtension::Handle>& handleArray) Wouldn't `const Vector<Handle>&` work? > Source/WebKit/Shared/SandboxExtension.h:127 > +inline auto SandboxExtension::createReadOnlyHandlesForFiles(ASCIILiteral, const Vector<String>&) -> Vector<Handle> { return { }; } Do we need the auto return value here? Wouldn't `Vector<Handle>` as return value work here since we're in the class scope?
(In reply to Chris Dumez from comment #2) > Comment on attachment 435520 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=435520&action=review > > r=me > > > Source/WebKit/Shared/Cocoa/SandboxExtensionCocoa.mm:428 > > +bool SandboxExtension::consumePermanently(const Vector<SandboxExtension::Handle>& handleArray) > > Wouldn't `const Vector<Handle>&` work? Yes. > > Source/WebKit/Shared/SandboxExtension.h:127 > > +inline auto SandboxExtension::createReadOnlyHandlesForFiles(ASCIILiteral, const Vector<String>&) -> Vector<Handle> { return { }; } > > Do we need the auto return value here? Wouldn't `Vector<Handle>` as return > value work here since we're in the class scope? No, only trailing return values are in the class scope.
Created attachment 435896 [details] Patch
Committed r281277 (240702@main): <https://commits.webkit.org/240702@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 435896 [details].
<rdar://problem/82145920>
Reopening to attach new patch.
Created attachment 435933 [details] Fix internal build?
Committed r281289 (240713@main): <https://commits.webkit.org/240713@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 435933 [details].