LibJS: Declare HeapFunction::function() with [[nodiscard]]

This commit is contained in:
Aliaksandr Kalenik 2023-09-26 15:22:55 +02:00 committed by Andreas Kling
commit c46ce53ce3
Notes: sideshowbarker 2024-07-17 10:08:28 +09:00

View file

@ -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)