mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:37:35 +00:00
Kernel: Decorate KResult with [[nodiscard]]
This commit is contained in:
parent
946c96dd56
commit
f3cbb79f80
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ enum KSuccessTag {
|
||||||
KSuccess
|
KSuccess
|
||||||
};
|
};
|
||||||
|
|
||||||
class KResult {
|
class [[nodiscard]] KResult {
|
||||||
public:
|
public:
|
||||||
ALWAYS_INLINE explicit KResult(int negative_e)
|
ALWAYS_INLINE explicit KResult(int negative_e)
|
||||||
: m_error(negative_e)
|
: m_error(negative_e)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue