From 095e56cc82ac7397ffb0bf30584af35c37572325 Mon Sep 17 00:00:00 2001 From: Christopher Arndt Date: Mon, 4 Nov 2019 22:45:28 +0100 Subject: [PATCH] Name roundedValue properly and make it const Signed-off-by: Christopher Arndt --- distrho/src/DistrhoPluginLV2export.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distrho/src/DistrhoPluginLV2export.cpp b/distrho/src/DistrhoPluginLV2export.cpp index 8aed1e32..681b1b1b 100644 --- a/distrho/src/DistrhoPluginLV2export.cpp +++ b/distrho/src/DistrhoPluginLV2export.cpp @@ -563,8 +563,8 @@ void lv2_generate_ttl(const char* const basename) pluginString += " rdfs:label \"\"\"" + enumValue.label + "\"\"\" ;\n"; if (plugin.getParameterHints(i) & kParameterIsInteger) { - int roundedvalue = (int)(enumValue.value + 0.5f); - pluginString += " rdf:value " + String(roundedvalue) + " ;\n"; + const int roundedValue = (int)(enumValue.value + 0.5f); + pluginString += " rdf:value " + String(roundedValue) + " ;\n"; } else { pluginString += " rdf:value " + String(enumValue.value) + " ;\n";