summaryrefslogtreecommitdiff
path: root/gr-analog/lib/ctcss_squelch_ff_impl.h
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.se>2020-04-10 10:34:20 +0100
committerMarcus Müller <marcus@hostalia.de>2020-04-10 21:38:42 +0200
commite30b5d796384410db1a4440c0e3692e9a59c508a (patch)
tree5b650b20f24cb84c42458cd1c46b9dda6b54fd55 /gr-analog/lib/ctcss_squelch_ff_impl.h
parent8427b6cdd8112f82ddae5815a87334708db5764e (diff)
analog: Remove manual memory management
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);