mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibJS: Declare HeapFunction::function() with [[nodiscard]]
This commit is contained in:
parent
fe3a824ad4
commit
c46ce53ce3
Notes:
sideshowbarker
2024-07-17 10:08:28 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: c46ce53ce3
Pull-request: https://github.com/SerenityOS/serenity/pull/21234
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ public:
|
|||
|
||||
virtual ~HeapFunction() override = default;
|
||||
|
||||
Function<T> const& function() const { return m_function; }
|
||||
[[nodiscard]] Function<T> const& function() const { return m_function; }
|
||||
|
||||
private:
|
||||
HeapFunction(Function<T> function)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue