mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
Kernel: Tidy up InodeWatcher construction
- Rename create() => try_create() - Use adopt_nonnull_ref_or_enomem()
This commit is contained in:
parent
393229e2aa
commit
68a6d4c30a
3 changed files with 4 additions and 7 deletions
|
@ -43,7 +43,7 @@ private:
|
|||
|
||||
class InodeWatcher final : public File {
|
||||
public:
|
||||
static KResultOr<NonnullRefPtr<InodeWatcher>> create();
|
||||
static KResultOr<NonnullRefPtr<InodeWatcher>> try_create();
|
||||
virtual ~InodeWatcher() override;
|
||||
|
||||
virtual bool can_read(const FileDescription&, size_t) const override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue