summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/random_pdu_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-blocks/lib/random_pdu_impl.cc')
-rw-r--r--gr-blocks/lib/random_pdu_impl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-blocks/lib/random_pdu_impl.cc b/gr-blocks/lib/random_pdu_impl.cc
index 2ee9b89759..2a8e1eb7f5 100644
--- a/gr-blocks/lib/random_pdu_impl.cc
+++ b/gr-blocks/lib/random_pdu_impl.cc
@@ -22,8 +22,8 @@ namespace blocks {
random_pdu::sptr
random_pdu::make(int min_items, int max_items, unsigned char byte_mask, int length_modulo)
{
- return gnuradio::get_initial_sptr(
- new random_pdu_impl(min_items, max_items, byte_mask, length_modulo));
+ return gnuradio::make_block_sptr<random_pdu_impl>(
+ min_items, max_items, byte_mask, length_modulo);
}
random_pdu_impl::random_pdu_impl(int min_items,