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.cc | |
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.cc')
-rw-r--r-- | gr-fft/lib/goertzel.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-fft/lib/goertzel.cc b/gr-fft/lib/goertzel.cc index 96b41b0126..f50ffeb81f 100644 --- a/gr-fft/lib/goertzel.cc +++ b/gr-fft/lib/goertzel.cc @@ -45,7 +45,7 @@ void goertzel::set_params(int rate, int len, float freq) d_processed = 0; } -gr_complex goertzel::batch(float* in) +gr_complex goertzel::batch(const float* in) { d_d1 = 0.0; d_d2 = 0.0; |