1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fixed a compiler warning on Android

This commit is contained in:
hogliux 2018-06-11 13:03:12 +01:00
parent b2ec7f07a5
commit d2bcc74f46

View file

@ -70,9 +70,9 @@ struct AudioProcessorValueTreeState::Parameter : public AudioProcessorParamete
String getText (float normalisedValue, int length) const override
{
auto value = range.convertFrom0to1 (normalisedValue);
return valueToTextFunction != nullptr ? valueToTextFunction (value)
: AudioProcessorParameter::getText (value, length);
auto v = range.convertFrom0to1 (normalisedValue);
return valueToTextFunction != nullptr ? valueToTextFunction (v)
: AudioProcessorParameter::getText (v, length);
}
int getNumSteps() const override