Skip to content

Commit

Permalink
fixup! feature(effects): EffectPreset::updateParametersFrom(EffectPre…
Browse files Browse the repository at this point in the history
…set&)
  • Loading branch information
Swiftb0y committed Aug 29, 2022
1 parent ac1a8e9 commit 5e30520
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/effects/presets/effectpreset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ void EffectPreset::updateParametersFrom(const EffectPreset& other) {
auto currentParameterIt =
std::find_if(m_effectParameterPresets.begin(),
m_effectParameterPresets.end(),
[&](const auto& ourPreset) {
return ourPreset.id() == parameterToCopy.id();
[&](const auto& ourParameter) {
return ourParameter.id() == parameterToCopy.id();
});
if (currentParameterIt == m_effectParameterPresets.cend()) {
if (currentParameterIt == m_effectParameterPresets.end()) {
continue;
}
// overwrite our parameter by taking a copy of the same parameter from `other`
Expand Down

0 comments on commit 5e30520

Please sign in to comment.