mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:27:35 +00:00
Kernel: Use KResult in unlink() and rmdir().
This commit is contained in:
parent
ce53b6fd0f
commit
5b27f11b97
11 changed files with 54 additions and 92 deletions
|
@ -11,6 +11,9 @@ public:
|
|||
KResult(KSuccessTag) : m_error(0) { }
|
||||
operator int() const { return m_error; }
|
||||
|
||||
bool is_success() const { return m_error == ESUCCESS; }
|
||||
bool is_error() const { return !is_success(); }
|
||||
|
||||
private:
|
||||
template<typename T> friend class KResultOr;
|
||||
KResult() { }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue