Kernel: Add KResult::error() to make it look symmetrical with KResultOr

This commit is contained in:
Andreas Kling 2020-01-06 12:08:27 +01:00
parent a47f0c93de
commit 08cfcb888c

View file

@ -19,6 +19,7 @@ public:
{
}
operator int() const { return m_error; }
int error() const { return m_error; }
bool is_success() const { return m_error == ESUCCESS; }
bool is_error() const { return !is_success(); }