소스 검색

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

Andreas Kling 5 년 전
부모
커밋
08cfcb888c
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      Kernel/KResult.h

+ 1 - 0
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(); }