diff options
author | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-12-15 01:05:33 +0100 |
---|---|---|
committer | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-12-15 01:57:06 +0100 |
commit | 0471998e13aada9a76e92b13ab3885c2d1c2fb84 (patch) | |
tree | 776d15ab92ef044956940bc2228b61256ca4feb9 /src/effects | |
parent | 63b858b5d827797eec959d009ad0b970de167dc5 (diff) |
Add missing braces around single-line statements
Diffstat (limited to 'src/effects')
-rw-r--r-- | src/effects/effectchainmanager.cpp | 6 | ||||
-rw-r--r-- | src/effects/effectchainslot.cpp | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/effects/effectchainmanager.cpp b/src/effects/effectchainmanager.cpp index e4c7114a70..764da0107f 100644 --- a/src/effects/effectchainmanager.cpp +++ b/src/effects/effectchainmanager.cpp @@ -112,8 +112,9 @@ void EffectChainManager::removeEffectChain(EffectChainPointer pEffectChain) { } EffectChainPointer EffectChainManager::getNextEffectChain(EffectChainPointer pEffectChain) { - if (m_effectChains.isEmpty()) + if (m_effectChains.isEmpty()) { return EffectChainPointer(); + } if (!pEffectChain) { return m_effectChains[0]; @@ -129,8 +130,9 @@ EffectChainPointer EffectChainManager::getNextEffectChain(EffectChainPointer pEf } EffectChainPointer EffectChainManager::getPrevEffectChain(EffectChainPointer pEffectChain) { - if (m_effectChains.isEmpty()) + if (m_effectChains.isEmpty()) { return EffectChainPointer(); + } if (!pEffectChain) { return m_effectChains[m_effectChains.size()-1]; diff --git a/src/effects/effectchainslot.cpp b/src/effects/effectchainslot.cpp index e0b82a1d31..0f66673029 100644 --- a/src/effects/effectchainslot.cpp +++ b/src/effects/effectchainslot.cpp @@ -138,8 +138,9 @@ EffectChainSlot::~EffectChainSlot() { } QString EffectChainSlot::id() const { - if (m_pEffectChain) + if (m_pEffectChain) { return m_pEffectChain->id(); + } return ""; } |