summaryrefslogtreecommitdiff
path: root/gr-analog/lib/ctcss_squelch_ff_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'gr-analog/lib/ctcss_squelch_ff_impl.h')
-rw-r--r--gr-analog/lib/ctcss_squelch_ff_impl.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/gr-analog/lib/ctcss_squelch_ff_impl.h b/gr-analog/lib/ctcss_squelch_ff_impl.h
index 568834aa17..11ca92b025 100644
--- a/gr-analog/lib/ctcss_squelch_ff_impl.h
+++ b/gr-analog/lib/ctcss_squelch_ff_impl.h
@@ -14,6 +14,7 @@
#include "squelch_base_ff_impl.h"
#include <gnuradio/analog/ctcss_squelch_ff.h>
#include <gnuradio/fft/goertzel.h>
+#include <memory>
namespace gr {
namespace analog {
@@ -27,9 +28,9 @@ private:
int d_rate;
bool d_mute;
- fft::goertzel* d_goertzel_l;
- fft::goertzel* d_goertzel_c;
- fft::goertzel* d_goertzel_r;
+ std::unique_ptr<fft::goertzel> d_goertzel_l;
+ std::unique_ptr<fft::goertzel> d_goertzel_c;
+ std::unique_ptr<fft::goertzel> d_goertzel_r;
static int find_tone(float freq);
static void compute_freqs(const float& freq, float& f_l, float& f_r);