summaryrefslogtreecommitdiffstats
path: root/src/effects/effectchainmanager.cpp
diff options
context:
space:
mode:
authorbe_ <be.0@gmx.com>2017-01-02 18:14:56 -0600
committerbe_ <be.0@gmx.com>2017-01-19 18:04:54 -0600
commit80a0e966a688f002f8a75caa1de897b85368dc6a (patch)
tree51993d0b27e8caa8074248eb1faf1ef79975bb76 /src/effects/effectchainmanager.cpp
parentb7bfd3232b8006a5ae2ffea5dd6a6350cba818a3 (diff)
define a constant for the number of effects
Diffstat (limited to 'src/effects/effectchainmanager.cpp')
-rw-r--r--src/effects/effectchainmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/effects/effectchainmanager.cpp b/src/effects/effectchainmanager.cpp
index 721cba05c1..405eb95ee8 100644
--- a/src/effects/effectchainmanager.cpp
+++ b/src/effects/effectchainmanager.cpp
@@ -181,7 +181,7 @@ QList<std::pair<EffectChainPointer, QDomElement>> EffectChainManager::loadEffect
if (!file.open(QIODevice::ReadOnly)) {
EffectChainPointer pEmptyChain;
QDomElement emptyChainElement = doc.createElement("EffectChain");
- for (int i = 0; i < 4; ++i) {
+ for (int i = 0; i < kNumEffectsPerUnit; ++i) {
pEmptyChain = EffectChainPointer(new EffectChain(m_pEffectsManager,
QString(),
EffectChainPointer()));
@@ -194,7 +194,7 @@ QList<std::pair<EffectChainPointer, QDomElement>> EffectChainManager::loadEffect
file.close();
EffectChainPointer pEmptyChain;
QDomElement emptyChainElement = doc.createElement("EffectChain");
- for (int i = 0; i < 4; ++i) {
+ for (int i = 0; i < kNumEffectsPerUnit; ++i) {
pEmptyChain = EffectChainPointer(new EffectChain(m_pEffectsManager,
QString(),
EffectChainPointer()));