diff options
author | Marcus Müller <mmueller@gnuradio.org> | 2020-10-30 18:22:33 +0100 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2020-11-03 14:07:23 -0500 |
commit | 0ddc7dbc95ca6fb4c4a62a3c027104d6dd71fc3b (patch) | |
tree | b454053fdc123711f3011b8a703de38e1d783ba3 /gr-blocks/lib/peak_detector_impl.h | |
parent | 1cfd6287635e339b313e1826fdfda23f474c91c8 (diff) |
modernization: `override` instead of virtual in all compilation units
Diffstat (limited to 'gr-blocks/lib/peak_detector_impl.h')
-rw-r--r-- | gr-blocks/lib/peak_detector_impl.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gr-blocks/lib/peak_detector_impl.h b/gr-blocks/lib/peak_detector_impl.h index 4aa792654f..8ca9522570 100644 --- a/gr-blocks/lib/peak_detector_impl.h +++ b/gr-blocks/lib/peak_detector_impl.h @@ -31,16 +31,16 @@ public: float threshold_factor_fall, int look_ahead, float alpha); - ~peak_detector_impl(); - - void set_threshold_factor_rise(float thr) { d_threshold_factor_rise = thr; } - void set_threshold_factor_fall(float thr) { d_threshold_factor_fall = thr; } - void set_look_ahead(int look) { d_look_ahead = look; } - void set_alpha(float alpha) { d_avg_alpha = alpha; } - float threshold_factor_rise() { return d_threshold_factor_rise; } - float threshold_factor_fall() { return d_threshold_factor_fall; } - int look_ahead() { return d_look_ahead; } - float alpha() { return d_avg_alpha; } + ~peak_detector_impl() override; + + void set_threshold_factor_rise(float thr) override { d_threshold_factor_rise = thr; } + void set_threshold_factor_fall(float thr) override { d_threshold_factor_fall = thr; } + void set_look_ahead(int look) override { d_look_ahead = look; } + void set_alpha(float alpha) override { d_avg_alpha = alpha; } + float threshold_factor_rise() override { return d_threshold_factor_rise; } + float threshold_factor_fall() override { return d_threshold_factor_fall; } + int look_ahead() override { return d_look_ahead; } + float alpha() override { return d_avg_alpha; } int work(int noutput_items, gr_vector_const_void_star& input_items, |