From 7a056bbcf84f9437d7a00a5659be5bb6008bfe1d Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 24 Jun 2019 12:00:44 +0200 Subject: [PATCH] Don't return reference in getFixedValue function Signed-off-by: falkTX --- distrho/DistrhoPlugin.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distrho/DistrhoPlugin.hpp b/distrho/DistrhoPlugin.hpp index 1da2bdb6..ebc54077 100644 --- a/distrho/DistrhoPlugin.hpp +++ b/distrho/DistrhoPlugin.hpp @@ -226,7 +226,7 @@ struct ParameterRanges { /** Get a fixed value within range. */ - const float& getFixedValue(const float& value) const noexcept + float getFixedValue(const float& value) const noexcept { if (value <= min) return min;