1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-08 23:24:19 +00:00

ScopedValueSetter: Make nodiscard

This commit is contained in:
reuk 2025-11-17 20:11:21 +00:00
parent e465b71188
commit c514c95797
No known key found for this signature in database

View file

@ -63,7 +63,7 @@ namespace juce
@tags{Core}
*/
template <typename ValueType>
class ScopedValueSetter
class [[nodiscard]] ScopedValueSetter
{
public:
/** Creates a ScopedValueSetter that will immediately change the specified value to the