From 08cfcb888c44f94ca86a56efd3a8f82b086f182e Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 6 Jan 2020 12:08:27 +0100 Subject: [PATCH] Kernel: Add KResult::error() to make it look symmetrical with KResultOr --- Kernel/KResult.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Kernel/KResult.h b/Kernel/KResult.h index 9e6f6f6ed01..a5959cf1262 100644 --- a/Kernel/KResult.h +++ b/Kernel/KResult.h @@ -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(); }