1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

CapabilityInquiryDemo: Use "if constexpr" for constant predicate

This commit is contained in:
reuk 2023-11-01 11:57:40 +00:00
parent 8874a29844
commit abe0e6e5fd

View file

@ -2780,7 +2780,7 @@ private:
void updateStateFromUI()
{
if (editable == Editable::yes)
if constexpr (editable == Editable::yes)
{
auto updated = *state;
auto& props = updated.properties;