mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +00:00
Kernel: Decorate KResult with [[nodiscard]]
This commit is contained in:
parent
946c96dd56
commit
f3cbb79f80
Notes:
sideshowbarker
2024-07-19 04:16:49 +09:00
Author: https://github.com/bgianfo
Commit: f3cbb79f80
Pull-request: https://github.com/SerenityOS/serenity/pull/3001
Reviewed-by: https://github.com/awesomekling
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ enum KSuccessTag {
|
|||
KSuccess
|
||||
};
|
||||
|
||||
class KResult {
|
||||
class [[nodiscard]] KResult {
|
||||
public:
|
||||
ALWAYS_INLINE explicit KResult(int negative_e)
|
||||
: m_error(negative_e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue