Skip to content

Commit

Permalink
Copy coeff from const ref
Browse files Browse the repository at this point in the history
  • Loading branch information
mike919192 committed Jul 25, 2024
1 parent 8e0e999 commit 246aea0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/sdsp/casc2orderIIR.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class casc2orderIIR {
static_assert(M % 2 == 0, "M must be even!");
}

void copy_coeff_from(casc2orderIIR<M> otherFilter)
void copy_coeff_from(const casc2orderIIR<M> &otherFilter)
{
gain = otherFilter.gain;
bCoeff = otherFilter.bCoeff;
Expand Down Expand Up @@ -271,7 +271,7 @@ class casc_2o_IIR_lp : casc_2o_IIR<M> {
static_assert(M % 2 == 0, "M must be even!");
}

void copy_coeff_from(casc_2o_IIR_lp<M> otherFilter)
void copy_coeff_from(const casc_2o_IIR_lp<M> &otherFilter)
{
this->gain = otherFilter.gain;
this->aCoeff = otherFilter.aCoeff;
Expand Down Expand Up @@ -329,7 +329,7 @@ class casc_2o_IIR_hp : casc_2o_IIR<M> {
static_assert(M % 2 == 0, "M must be even!");
}

void copy_coeff_from(casc_2o_IIR_hp<M> otherFilter)
void copy_coeff_from(const casc_2o_IIR_hp<M> &otherFilter)
{
this->gain = otherFilter.gain;
this->aCoeff = otherFilter.aCoeff;
Expand Down Expand Up @@ -387,7 +387,7 @@ class casc_2o_IIR_bp : casc_2o_IIR<M> {
static_assert(M % 2 == 0, "M must be even!");
}

void copy_coeff_from(casc_2o_IIR_bp<M> otherFilter)
void copy_coeff_from(const casc_2o_IIR_bp<M> &otherFilter)
{
this->gain = otherFilter.gain;
this->aCoeff = otherFilter.aCoeff;
Expand Down

0 comments on commit 246aea0

Please sign in to comment.