diff --git a/Source/FilePicker.cpp b/Source/FilePicker.cpp index d2a7eff..982790c 100644 --- a/Source/FilePicker.cpp +++ b/Source/FilePicker.cpp @@ -65,7 +65,7 @@ void FilePicker::valueTreePropertyChanged(ValueTree& treeWhosePropertyHasChanged if (treeWhosePropertyHasChanged.getType() == StringRef("soundFont")) { // if (&treeWhosePropertyHasChanged == &valueTree) { if (property == StringRef("path")) { - String soundFontPath{treeWhosePropertyHasChanged.getProperty("path", "")}; + String soundFontPath = treeWhosePropertyHasChanged.getProperty("path", ""); DEBUG_PRINT(soundFontPath); setDisplayedFilePath(soundFontPath); // if (soundFontPath.isNotEmpty()) { diff --git a/Source/FluidSynthModel.cpp b/Source/FluidSynthModel.cpp index e04845e..3634c1d 100644 --- a/Source/FluidSynthModel.cpp +++ b/Source/FluidSynthModel.cpp @@ -75,7 +75,7 @@ void FluidSynthModel::initialise() { fluid_synth_set_sample_rate(synth.get(), currentSampleRate); ValueTree soundFont{valueTreeState.state.getChildWithName("soundFont")}; - String path{soundFont.getProperty("path", "")}; + String path = soundFont.getProperty("path", ""); loadFont(path); // I can't hear a damned thing @@ -225,7 +225,7 @@ void FluidSynthModel::valueTreePropertyChanged(ValueTree& treeWhosePropertyHasCh const Identifier& property) { if (treeWhosePropertyHasChanged.getType() == StringRef("soundFont")) { if (property == StringRef("path")) { - String soundFontPath{treeWhosePropertyHasChanged.getProperty("path", "")}; + String soundFontPath = treeWhosePropertyHasChanged.getProperty("path", ""); if (soundFontPath.isNotEmpty()) { unloadAndLoadFont(soundFontPath); } diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index 1df3466..dfb9255 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -239,7 +239,7 @@ void JuicySFAudioProcessor::getStateInformation (MemoryBlock& destData) ValueTree tree{valueTreeState.state.getChildWithName("soundFont")}; XmlElement* newElement{xml.createNewChildElement("soundFont")}; { - String value{tree.getProperty("path", "")}; + String value = tree.getProperty("path", ""); newElement->setAttribute("path", value); } } diff --git a/Source/TableComponent.cpp b/Source/TableComponent.cpp index e52ea81..dbb6a81 100644 --- a/Source/TableComponent.cpp +++ b/Source/TableComponent.cpp @@ -80,7 +80,7 @@ void TableComponent::loadModelFrom(ValueTree& banks) { for(int presetIx{0}; presetIx