diff options
author | Thomas Habets <thomas@habets.se> | 2020-01-03 18:16:03 +0000 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2020-01-04 23:35:20 -0800 |
commit | eae138c160a6fb2834eb5eda392d0ed25fbc48d0 (patch) | |
tree | 4746bd59abb3d00658a0ed56630265b652338c4b /gr-fft/lib/goertzel_fc_impl.h | |
parent | ebe8ffc58503a1b4f167a13d5663e8849379eaaf (diff) |
gr-fft: Modernize fft code
* Add const where possible
* Disable copy assignment and copy constructor where not safe (for now) to copy
* Manual memory management -> smart pointers and vectors
* De-pointerify where possible
* assert -> static_assert
Diffstat (limited to 'gr-fft/lib/goertzel_fc_impl.h')
-rw-r--r-- | gr-fft/lib/goertzel_fc_impl.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gr-fft/lib/goertzel_fc_impl.h b/gr-fft/lib/goertzel_fc_impl.h index c84512b586..e771bc153c 100644 --- a/gr-fft/lib/goertzel_fc_impl.h +++ b/gr-fft/lib/goertzel_fc_impl.h @@ -33,7 +33,7 @@ class FFT_API goertzel_fc_impl : public goertzel_fc { private: goertzel d_goertzel; - int d_len; + const int d_len; float d_freq; int d_rate; @@ -45,8 +45,8 @@ public: void set_freq(float freq); void set_rate(int rate); - float freq() { return d_freq; } - int rate() { return d_rate; } + float freq() const { return d_freq; } + int rate() const { return d_rate; } int work(int noutput_items, gr_vector_const_void_star& input_items, |