Modify all block factories to use gnuradio::get_initial_sptr.
[debian/gnuradio] / gnuradio-core / src / lib / general / gr_unpack_k_bits_bb.cc
index 010e82a33aeba88098dee152d1d6e79a5493ce38..e33c3da9a513c3f3a7d15e9c6bafec2659b6243d 100644 (file)
@@ -1,12 +1,12 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2005 Free Software Foundation, Inc.
+ * Copyright 2005,2010 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
  * GNU Radio is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
+ * the Free Software Foundation; either version 3, or (at your option)
  * any later version.
  * 
  * GNU Radio is distributed in the hope that it will be useful,
@@ -31,7 +31,7 @@
 
 gr_unpack_k_bits_bb_sptr gr_make_unpack_k_bits_bb (unsigned k)
 {
-  return gr_unpack_k_bits_bb_sptr (new gr_unpack_k_bits_bb (k));
+  return gnuradio::get_initial_sptr(new gr_unpack_k_bits_bb (k));
 }