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-analog/lib/sig_source_impl.h | |
parent | 1cfd6287635e339b313e1826fdfda23f474c91c8 (diff) |
modernization: `override` instead of virtual in all compilation units
Diffstat (limited to 'gr-analog/lib/sig_source_impl.h')
-rw-r--r-- | gr-analog/lib/sig_source_impl.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/gr-analog/lib/sig_source_impl.h b/gr-analog/lib/sig_source_impl.h index 580643c4ee..d73c51de68 100644 --- a/gr-analog/lib/sig_source_impl.h +++ b/gr-analog/lib/sig_source_impl.h @@ -37,31 +37,31 @@ public: double ampl, T offset = 0, float phase = 0); - ~sig_source_impl(); + ~sig_source_impl() override; - virtual int work(int noutput_items, - gr_vector_const_void_star& input_items, - gr_vector_void_star& output_items) override; + int work(int noutput_items, + gr_vector_const_void_star& input_items, + gr_vector_void_star& output_items) override; - double sampling_freq() const { return d_sampling_freq; } - gr_waveform_t waveform() const { return d_waveform; } - double frequency() const { return d_frequency; } - double amplitude() const { return d_ampl; } - T offset() const { return d_offset; } - float phase() const { return d_nco.get_phase(); } + double sampling_freq() const override { return d_sampling_freq; } + gr_waveform_t waveform() const override { return d_waveform; } + double frequency() const override { return d_frequency; } + double amplitude() const override { return d_ampl; } + T offset() const override { return d_offset; } + float phase() const override { return d_nco.get_phase(); } - void set_sampling_freq(double sampling_freq); - void set_waveform(gr_waveform_t waveform); + void set_sampling_freq(double sampling_freq) override; + void set_waveform(gr_waveform_t waveform) override; // Message handlers //!\brief deprecated handler. Use "cmd" port instead. void set_freq_msg(pmt::pmt_t msg); void set_cmd_msg(pmt::pmt_t msg); - void set_frequency(double frequency); - void set_amplitude(double ampl); - void set_offset(T offset); - void set_phase(float phase); + void set_frequency(double frequency) override; + void set_amplitude(double ampl) override; + void set_offset(T offset) override; + void set_phase(float phase) override; }; } /* namespace analog */ |