mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-16 15:30:09 +00:00
Kernel: Use KResultOr better in ProcessGroup construction
This allows us to use TRY() more.
This commit is contained in:
parent
540d62d3b2
commit
98dc08fe56
Notes:
sideshowbarker
2024-07-18 04:39:12 +09:00
Author: https://github.com/awesomekling
Commit: 98dc08fe56
3 changed files with 11 additions and 21 deletions
|
@ -24,8 +24,8 @@ class ProcessGroup
|
|||
public:
|
||||
~ProcessGroup();
|
||||
|
||||
static RefPtr<ProcessGroup> try_create(ProcessGroupID);
|
||||
static RefPtr<ProcessGroup> try_find_or_create(ProcessGroupID);
|
||||
static KResultOr<NonnullRefPtr<ProcessGroup>> try_create(ProcessGroupID);
|
||||
static KResultOr<NonnullRefPtr<ProcessGroup>> try_find_or_create(ProcessGroupID);
|
||||
static RefPtr<ProcessGroup> from_pgid(ProcessGroupID);
|
||||
|
||||
const ProcessGroupID& pgid() const { return m_pgid; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue