From d16f2d3d4c46a177475053dff173557ad34290dc Mon Sep 17 00:00:00 2001
From: Thomas Habets <thomas@habets.se>
Date: Tue, 14 Apr 2020 17:45:11 +0100
Subject: blocks: move the `new` from the block `::make()` to core

This includes the first edit of a block, so that it's easy to review.
A following commit changes this globally.
---
 gr-blocks/lib/null_source_impl.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'gr-blocks/lib/null_source_impl.cc')

diff --git a/gr-blocks/lib/null_source_impl.cc b/gr-blocks/lib/null_source_impl.cc
index c50a53cda0..a26b501ac9 100644
--- a/gr-blocks/lib/null_source_impl.cc
+++ b/gr-blocks/lib/null_source_impl.cc
@@ -21,7 +21,7 @@ namespace blocks {
 
 null_source::sptr null_source::make(size_t sizeof_stream_item)
 {
-    return gnuradio::get_initial_sptr(new null_source_impl(sizeof_stream_item));
+    return gnuradio::make_block_sptr<null_source_impl>(sizeof_stream_item);
 }
 
 null_source_impl::null_source_impl(size_t sizeof_stream_item)
-- 
cgit v1.2.3