Browse Source

Name roundedValue properly and make it const

Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
pull/195/head
Christopher Arndt 6 years ago
parent
commit
095e56cc82
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      distrho/src/DistrhoPluginLV2export.cpp

+ 2
- 2
distrho/src/DistrhoPluginLV2export.cpp View File

@@ -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";


Loading…
Cancel
Save