From 246aea023d61b3058862b37343e4d3465c60fc5b Mon Sep 17 00:00:00 2001 From: Michael Bloom Date: Thu, 25 Jul 2024 18:48:01 -0400 Subject: [PATCH] Copy coeff from const ref --- include/sdsp/casc2orderIIR.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/sdsp/casc2orderIIR.h b/include/sdsp/casc2orderIIR.h index 4b779d3..955e2a9 100644 --- a/include/sdsp/casc2orderIIR.h +++ b/include/sdsp/casc2orderIIR.h @@ -25,7 +25,7 @@ class casc2orderIIR { static_assert(M % 2 == 0, "M must be even!"); } - void copy_coeff_from(casc2orderIIR otherFilter) + void copy_coeff_from(const casc2orderIIR &otherFilter) { gain = otherFilter.gain; bCoeff = otherFilter.bCoeff; @@ -271,7 +271,7 @@ class casc_2o_IIR_lp : casc_2o_IIR { static_assert(M % 2 == 0, "M must be even!"); } - void copy_coeff_from(casc_2o_IIR_lp otherFilter) + void copy_coeff_from(const casc_2o_IIR_lp &otherFilter) { this->gain = otherFilter.gain; this->aCoeff = otherFilter.aCoeff; @@ -329,7 +329,7 @@ class casc_2o_IIR_hp : casc_2o_IIR { static_assert(M % 2 == 0, "M must be even!"); } - void copy_coeff_from(casc_2o_IIR_hp otherFilter) + void copy_coeff_from(const casc_2o_IIR_hp &otherFilter) { this->gain = otherFilter.gain; this->aCoeff = otherFilter.aCoeff; @@ -387,7 +387,7 @@ class casc_2o_IIR_bp : casc_2o_IIR { static_assert(M % 2 == 0, "M must be even!"); } - void copy_coeff_from(casc_2o_IIR_bp otherFilter) + void copy_coeff_from(const casc_2o_IIR_bp &otherFilter) { this->gain = otherFilter.gain; this->aCoeff = otherFilter.aCoeff;