summaryrefslogtreecommitdiffstats
path: root/src/mixer/samplerbank.cpp
diff options
context:
space:
mode:
authorbe_ <be.0@gmx.com>2017-03-30 16:36:05 -0500
committerbe_ <be.0@gmx.com>2017-03-30 16:36:05 -0500
commitb9b2184084793856ad97c1a73e696689aeb210e5 (patch)
tree33e6e2f16e30b9f71d4af633afdba674575237ce /src/mixer/samplerbank.cpp
parent3aa2c87c7d087366b4b52a9a0df9ea47866f83ef (diff)
use VERIFY_OR_DEBUG_ASSERT
and add a TODO
Diffstat (limited to 'src/mixer/samplerbank.cpp')
-rw-r--r--src/mixer/samplerbank.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mixer/samplerbank.cpp b/src/mixer/samplerbank.cpp
index 07b78e8c76..b5a8c90259 100644
--- a/src/mixer/samplerbank.cpp
+++ b/src/mixer/samplerbank.cpp
@@ -67,7 +67,7 @@ bool SamplerBank::saveSamplerBankToPath(const QString& samplerBankPath) {
// folder. We don't need access to this file on a regular basis so we do not
// register a security bookmark.
- if (m_pPlayerManager == nullptr) {
+ VERIFY_OR_DEBUG_ASSERT(m_pPlayerManager != nullptr) {
qWarning() << "SamplerBank::saveSamplerBankToPath called with no PlayerManager";
return false;
}
@@ -137,7 +137,7 @@ bool SamplerBank::loadSamplerBankFromPath(const QString& samplerBankPath) {
// folder. We don't need access to this file on a regular basis so we do not
// register a security bookmark.
- if (m_pPlayerManager == nullptr) {
+ VERIFY_OR_DEBUG_ASSERT(m_pPlayerManager != nullptr) {
qWarning() << "SamplerBank::loadSamplerBankFromPath called with no PlayerManager";
return false;
}