From 6ba9a380ef0be1a7a6664bd00f9ff47347224869 Mon Sep 17 00:00:00 2001 From: attila Date: Thu, 10 Apr 2025 09:21:03 +0200 Subject: [PATCH] Add const overload for ValueTreePropertyWithDefault::getPropertyID --- .../values/juce_ValueTreePropertyWithDefault.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/juce_data_structures/values/juce_ValueTreePropertyWithDefault.h b/modules/juce_data_structures/values/juce_ValueTreePropertyWithDefault.h index 4951486598..389df86a9f 100644 --- a/modules/juce_data_structures/values/juce_ValueTreePropertyWithDefault.h +++ b/modules/juce_data_structures/values/juce_ValueTreePropertyWithDefault.h @@ -230,6 +230,9 @@ public: /** Returns the property ID of the referenced property. */ Identifier& getPropertyID() noexcept { return targetProperty; } + /** Returns the property ID of the referenced property. */ + const Identifier& getPropertyID() const noexcept { return targetProperty; } + /** Returns the UndoManager that is being used. */ UndoManager* getUndoManager() noexcept { return undoManager; }