Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy coeff from const ref #24

Merged
merged 1 commit into from
Jul 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading