mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:47:34 +00:00
Kernel: Remove redundant [[nodiscard]] on KResult return values
Both KResult and KResultOr are [[nodiscard]] at the class level, so there's no need to have functions return `[[nodiscard]] KResult`.
This commit is contained in:
parent
e6929835d2
commit
4b4e1d1c90
8 changed files with 21 additions and 21 deletions
|
@ -23,7 +23,7 @@ public:
|
|||
|
||||
void operator delete(void*);
|
||||
|
||||
[[nodiscard]] KResultOr<NonnullOwnPtr<KString>> try_clone() const;
|
||||
KResultOr<NonnullOwnPtr<KString>> try_clone() const;
|
||||
|
||||
[[nodiscard]] bool is_empty() const { return m_length == 0; }
|
||||
[[nodiscard]] size_t length() const { return m_length; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue