summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/lib/general
diff options
context:
space:
mode:
authoreb2008-07-09 18:59:37 +0000
committereb2008-07-09 18:59:37 +0000
commit395e1fa650428899dee0f123cb7bf432732280c5 (patch)
treed84e105db26cfcca921c7446f001b31aef042984 /gnuradio-core/src/lib/general
parent73a2e8ac45347d1c1a12518557fb641dff3233b5 (diff)
downloadgnuradio-395e1fa650428899dee0f123cb7bf432732280c5.tar.gz
gnuradio-395e1fa650428899dee0f123cb7bf432732280c5.tar.bz2
gnuradio-395e1fa650428899dee0f123cb7bf432732280c5.zip
Merged jcorgan/ptrfix -r8827:8843 into the trunk.
Fix that allows C++ classes derived from gr_hier_block2 to use the new self() method to get a magic object that can be passed to connect or disconnect to refer to their own inputs and outputs. Note that the constructor wrapper of all classes derived from gr_hier_block2 (and thus gr_top_block too) MUST USE the new gnuradio::get_initial_sptr function to get the initial shared pointer. gnuradio::get_initial_sptr works on all block types, and should be used in all new code. See qa_gr_hier_block2_derived.{h,cc} for an example. git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@8844 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core/src/lib/general')
-rw-r--r--gnuradio-core/src/lib/general/gr_kludge_copy.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnuradio-core/src/lib/general/gr_kludge_copy.cc b/gnuradio-core/src/lib/general/gr_kludge_copy.cc
index 2589322fe..142c444ca 100644
--- a/gnuradio-core/src/lib/general/gr_kludge_copy.cc
+++ b/gnuradio-core/src/lib/general/gr_kludge_copy.cc
@@ -31,7 +31,7 @@
gr_kludge_copy_sptr
gr_make_kludge_copy(size_t itemsize)
{
- return gr_kludge_copy_sptr(new gr_kludge_copy(itemsize));
+ return gnuradio::get_initial_sptr(new gr_kludge_copy(itemsize));
}
gr_kludge_copy::gr_kludge_copy(size_t itemsize)