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

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
parent fe3a824ad4
commit c46ce53ce3

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)