From c514c957970d26f583974f3bd00f178bc2604b24 Mon Sep 17 00:00:00 2001 From: reuk Date: Mon, 17 Nov 2025 20:11:21 +0000 Subject: [PATCH] ScopedValueSetter: Make nodiscard --- modules/juce_core/containers/juce_ScopedValueSetter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_core/containers/juce_ScopedValueSetter.h b/modules/juce_core/containers/juce_ScopedValueSetter.h index 012e6b1d60..6e22f22e96 100644 --- a/modules/juce_core/containers/juce_ScopedValueSetter.h +++ b/modules/juce_core/containers/juce_ScopedValueSetter.h @@ -63,7 +63,7 @@ namespace juce @tags{Core} */ template -class ScopedValueSetter +class [[nodiscard]] ScopedValueSetter { public: /** Creates a ScopedValueSetter that will immediately change the specified value to the