From 016b04c64f17f74a0a3f04b06bff9207b63f1548 Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Tue, 30 Jul 2019 14:35:08 +0100 Subject: [PATCH] A minor code tidy --- modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm b/modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm index 7e2e71a16a..54779ea60a 100644 --- a/modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm +++ b/modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm @@ -934,12 +934,8 @@ public: { #if ! JUCE_FORCE_LEGACY_PARAMETER_AUTOMATION_TYPE if (isParameterDiscrete) - { - outParameterInfo.unit = kAudioUnitParameterUnit_Indexed; - - if (param->isBoolean()) - outParameterInfo.unit = kAudioUnitParameterUnit_Boolean; - } + outParameterInfo.unit = param->isBoolean() ? kAudioUnitParameterUnit_Boolean + : kAudioUnitParameterUnit_Indexed; #endif } @@ -1912,7 +1908,7 @@ private: { const AudioUnitParameterID auParamID = generateAUParameterID (param); - // Consider yourself very unlucky if you hit this assertion. The hash code of your + // Consider yourself very unlucky if you hit this assertion. The hash codes of your // parameter ids are not unique. jassert (! paramMap.contains (static_cast (auParamID)));