mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-03 14:50:18 +00:00
Kernel: Add KResult::error() to make it look symmetrical with KResultOr
This commit is contained in:
parent
a47f0c93de
commit
08cfcb888c
Notes:
sideshowbarker
2024-07-19 10:18:41 +09:00
Author: https://github.com/awesomekling
Commit: 08cfcb888c
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ public:
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
operator int() const { return m_error; }
|
operator int() const { return m_error; }
|
||||||
|
int error() const { return m_error; }
|
||||||
|
|
||||||
bool is_success() const { return m_error == ESUCCESS; }
|
bool is_success() const { return m_error == ESUCCESS; }
|
||||||
bool is_error() const { return !is_success(); }
|
bool is_error() const { return !is_success(); }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue