Skip to content

Commit

Permalink
EffectsChainPreset: initialize m_readOnly in all constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed Aug 30, 2023
1 parent faae539 commit 366f6cc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/effects/presets/effectchainpreset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ EffectChainPreset::EffectChainPreset(const QDomElement& chainElement) {
EffectChainPreset::EffectChainPreset(const EffectChain* chain)
: m_name(chain->presetName()),
m_mixMode(chain->mixMode()),
m_dSuper(chain->getSuperParameter()) {
m_dSuper(chain->getSuperParameter()),
m_readOnly(false) {
for (const auto& pEffectSlot : chain->getEffectSlots()) {
m_effectPresets.append(EffectPresetPointer(new EffectPreset(pEffectSlot)));
}
Expand All @@ -59,14 +60,16 @@ EffectChainPreset::EffectChainPreset(const EffectChain* chain)
EffectChainPreset::EffectChainPreset(EffectManifestPointer pManifest)
: m_name(pManifest->displayName()),
m_mixMode(EffectChainMixMode::DrySlashWet),
m_dSuper(pManifest->metaknobDefault()) {
m_dSuper(pManifest->metaknobDefault()),
m_readOnly(false) {
m_effectPresets.append(EffectPresetPointer(new EffectPreset(pManifest)));
}

EffectChainPreset::EffectChainPreset(EffectPresetPointer pEffectPreset)
: m_name(pEffectPreset->id()),
m_mixMode(EffectChainMixMode::DrySlashWet),
m_dSuper(pEffectPreset->metaParameter()) {
m_dSuper(pEffectPreset->metaParameter()),
m_readOnly(false) {
m_effectPresets.append(pEffectPreset);
}

Expand Down

0 comments on commit 366f6cc

Please sign in to comment.