From 157dbbad837a32e1b4c211eb2431a8c214c9de97 Mon Sep 17 00:00:00 2001 From: Michael Boonstra <49905192+MikeBooon@users.noreply.github.com> Date: Sat, 26 Oct 2024 20:38:30 -0700 Subject: [PATCH] LibWebView: Fix ProcessAndClient template deduction This resolves compiler errors in HelperProcess.cpp when instantiating Process::spawn() with various client types like WebContentClient and RequestClient. --- Userland/Libraries/LibWebView/Process.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWebView/Process.h b/Userland/Libraries/LibWebView/Process.h index 399f955fbcb..cfbca5edb69 100644 --- a/Userland/Libraries/LibWebView/Process.h +++ b/Userland/Libraries/LibWebView/Process.h @@ -76,7 +76,7 @@ ErrorOr> 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(client_arguments)... })); - return ProcessAndClient { Process { type, client, move(core_process) }, client }; + return ProcessAndClient { Process { type, client, move(core_process) }, client }; } }