diff options
Diffstat (limited to 'dev/kernel/NeKit/ErrorOr.h')
| -rw-r--r-- | dev/kernel/NeKit/ErrorOr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/kernel/NeKit/ErrorOr.h b/dev/kernel/NeKit/ErrorOr.h index 52f0d6a9..e8b3b6fc 100644 --- a/dev/kernel/NeKit/ErrorOr.h +++ b/dev/kernel/NeKit/ErrorOr.h @@ -38,8 +38,8 @@ class ErrorOr final { return *this; } - T Value() const { return *mRef; } - + const T& Value() { return mRef.TryLeak(); } + Ref<T>& Leak() { return mRef; } Int32 Error() { return mId; } |
