summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/peak_detector_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-blocks/lib/peak_detector_impl.cc')
-rw-r--r--gr-blocks/lib/peak_detector_impl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-blocks/lib/peak_detector_impl.cc b/gr-blocks/lib/peak_detector_impl.cc
index 1967e4416e..236f1d084c 100644
--- a/gr-blocks/lib/peak_detector_impl.cc
+++ b/gr-blocks/lib/peak_detector_impl.cc
@@ -49,8 +49,8 @@ typename peak_detector<T>::sptr peak_detector<T>::make(float threshold_factor_ri
int look_ahead,
float alpha)
{
- return gnuradio::get_initial_sptr(new peak_detector_impl<T>(
- threshold_factor_rise, threshold_factor_fall, look_ahead, alpha));
+ return gnuradio::make_block_sptr<peak_detector_impl<T>>(
+ threshold_factor_rise, threshold_factor_fall, look_ahead, alpha);
}
template <class T>