LibWebView: Fix ProcessAndClient template deduction

This resolves compiler errors in HelperProcess.cpp when instantiating
Process::spawn() with various client types like WebContentClient and
RequestClient.
This commit is contained in:
Michael Boonstra 2024-10-26 20:38:30 -07:00 committed by Andrew Kaster
commit 157dbbad83
Notes: github-actions[bot] 2024-10-28 02:58:52 +00:00

View file

@ -76,7 +76,7 @@ ErrorOr<Process::ProcessAndClient<ClientType>> Process::spawn(ProcessType type,
auto [core_process, transport] = TRY(spawn_and_connect_to_process(options));
auto client = TRY(adopt_nonnull_ref_or_enomem(new (nothrow) ClientType { move(transport), forward<ClientArguments>(client_arguments)... }));
return ProcessAndClient { Process { type, client, move(core_process) }, client };
return ProcessAndClient<ClientType> { Process { type, client, move(core_process) }, client };
}
}