juce-framework / JUCE

JUCE is an open-source cross-platform C++ application framework for desktop and mobile applications, including VST, VST3, AU, AUv3, LV2 and AAX audio plug-ins.
https://juce.com
Other
6.54k stars 1.73k forks source link

Add nullptr default to all undo-manager arguments in ValueTree #1333

Open ImJimmi opened 8 months ago

ImJimmi commented 8 months ago

Adds default nullptr value for all UndoManager* arguments in public-facing ValueTree methods. Having to explicitly supply the nullptr whenever you interact with a value tree makes code very messy, and is a bit of a code smell, especially for devs who are less familiar with JUCE as it's not at all obvious what that argument is.

Discussed here: https://forum.juce.com/t/fr-default-undomanager-arguments-to-nullptr-in-all-valuetree-methods/51689