From 9b349765dcbc8ffd72653b6f66fef2a23dba6228 Mon Sep 17 00:00:00 2001 From: Paul Fd Date: Sun, 15 Mar 2020 02:18:40 +0100 Subject: [PATCH] The debug in the else branch stymies clang tidy --- src/sfizz/Curve.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sfizz/Curve.cpp b/src/sfizz/Curve.cpp index dbbe60bf..be81e67e 100644 --- a/src/sfizz/Curve.cpp +++ b/src/sfizz/Curve.cpp @@ -222,10 +222,11 @@ void CurveSet::addCurveFromHeader(absl::Span members) Curve::Interpolator itp = Curve::Interpolator::Linear; if (const Opcode* opc = findOpcode(hash("curve_index"))) { - if (auto opt = readOpcode(opc->value, {0, 255})) + if (auto opt = readOpcode(opc->value, {0, 255})) { curveIndex = *opt; - else + } else { DBG("Invalid value for curve index: " << opc->value); + } } #if 0 // potential sfizz extension