mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
Kernel: Use AK::Variant default initialization where appropriate
This commit is contained in:
parent
743470c8f2
commit
12247fe9b4
Notes:
sideshowbarker
2024-07-18 03:36:01 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/12247fe9b44 Pull-request: https://github.com/SerenityOS/serenity/pull/10154 Reviewed-by: https://github.com/alimpfard
1 changed files with 1 additions and 2 deletions
|
@ -25,10 +25,9 @@ KResultOr<FlatPtr> Process::sys$waitid(Userspace<const Syscall::SC_waitid_params
|
|||
REQUIRE_PROMISE(proc);
|
||||
auto params = TRY(copy_typed_from_user(user_params));
|
||||
|
||||
Variant<Empty, NonnullRefPtr<Process>, NonnullRefPtr<ProcessGroup>> waitee = Empty {};
|
||||
Variant<Empty, NonnullRefPtr<Process>, NonnullRefPtr<ProcessGroup>> waitee;
|
||||
switch (params.idtype) {
|
||||
case P_ALL:
|
||||
waitee = Empty {};
|
||||
break;
|
||||
case P_PID: {
|
||||
auto waitee_process = Process::from_pid(params.id);
|
||||
|
|
Loading…
Reference in a new issue