1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:47:44 +00:00

Kernel: Decorate KResult with [[nodiscard]]

This commit is contained in:
Brian Gianforcaro 2020-08-05 02:14:29 -07:00 committed by Andreas Kling
parent 946c96dd56
commit f3cbb79f80

View file

@ -35,7 +35,7 @@ enum KSuccessTag {
KSuccess
};
class KResult {
class [[nodiscard]] KResult {
public:
ALWAYS_INLINE explicit KResult(int negative_e)
: m_error(negative_e)