The debug in the else branch stymies clang tidy
This commit is contained in:
parent
dc0040a46b
commit
9b349765dc
1 changed files with 3 additions and 2 deletions
|
|
@ -222,11 +222,12 @@ void CurveSet::addCurveFromHeader(absl::Span<const Opcode> members)
|
||||||
Curve::Interpolator itp = Curve::Interpolator::Linear;
|
Curve::Interpolator itp = Curve::Interpolator::Linear;
|
||||||
|
|
||||||
if (const Opcode* opc = findOpcode(hash("curve_index"))) {
|
if (const Opcode* opc = findOpcode(hash("curve_index"))) {
|
||||||
if (auto opt = readOpcode<int>(opc->value, {0, 255}))
|
if (auto opt = readOpcode<int>(opc->value, {0, 255})) {
|
||||||
curveIndex = *opt;
|
curveIndex = *opt;
|
||||||
else
|
} else {
|
||||||
DBG("Invalid value for curve index: " << opc->value);
|
DBG("Invalid value for curve index: " << opc->value);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#if 0 // potential sfizz extension
|
#if 0 // potential sfizz extension
|
||||||
if (const Opcode* opc = findOpcode(hash("sfizz:curve_interpolator"))) {
|
if (const Opcode* opc = findOpcode(hash("sfizz:curve_interpolator"))) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue