diff options
author | Philip Balister <philip@opensdr.com> | 2013-07-09 12:01:25 -0400 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2013-07-09 09:56:24 -0700 |
commit | 61d88983fbe8ba7822f227efc57aa98fa287c87b (patch) | |
tree | c024d3683de741ef9e746773e23ec4a28cee8d8a /gr-analog/lib/ctcss_squelch_ff_impl.h | |
parent | f5b4cc0f16f8b8f11bd7f54b069ba190732e86ce (diff) |
goertzel.h : Remove the default constructor for fft::goertzel.
The default constructor does not properly initialize the class
variables. This leads to the possibilty of undefined behavior if
the class is used carelessly. Instead force the user to do the right
thing at compile time.
The patch also fixes the in-tree user of this class.
Signed-off-by: Philip Balister <philip@opensdr.com>
Diffstat (limited to 'gr-analog/lib/ctcss_squelch_ff_impl.h')
-rw-r--r-- | gr-analog/lib/ctcss_squelch_ff_impl.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gr-analog/lib/ctcss_squelch_ff_impl.h b/gr-analog/lib/ctcss_squelch_ff_impl.h index 8954b213e2..94ba31569f 100644 --- a/gr-analog/lib/ctcss_squelch_ff_impl.h +++ b/gr-analog/lib/ctcss_squelch_ff_impl.h @@ -38,9 +38,9 @@ namespace gr { int d_len; bool d_mute; - fft::goertzel d_goertzel_l; - fft::goertzel d_goertzel_c; - fft::goertzel d_goertzel_r; + fft::goertzel *d_goertzel_l; + fft::goertzel *d_goertzel_c; + fft::goertzel *d_goertzel_r; int find_tone(float freq); |