diff options
author | Thomas Habets <thomas@habets.se> | 2020-05-03 12:23:51 +0100 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2020-07-30 18:12:44 +0200 |
commit | 30643f01609e915296023adc37123e27e2c86d3f (patch) | |
tree | caf7141e8091cd30cde4e75ef0d1fcc5454ace77 /gr-digital/lib/cpmmod_bc_impl.cc | |
parent | 875148321bca3c39af9aec8dee3c24eb9f75d1e6 (diff) |
Replace all calls to `get_initial_sptr` with `make_block_sptr`
First batch of changes:
```
find […] -print0 | xargs -0 sed -i -r '/get_initial_sptr/{:nxt N;/;/!b nxt;s/get_initial_sptr\(\s*new ([^(]+)(.*)\)\)/make_block_sptr<\1>\2)/}'
```
Then:
* Back out `sptr_magic.h` edits
* Change some `friend` clauses
* clang-format the whole thing
* Update checksums in the pybind11 bindings files
Diffstat (limited to 'gr-digital/lib/cpmmod_bc_impl.cc')
-rw-r--r-- | gr-digital/lib/cpmmod_bc_impl.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gr-digital/lib/cpmmod_bc_impl.cc b/gr-digital/lib/cpmmod_bc_impl.cc index ff92b6134..1506142b3 100644 --- a/gr-digital/lib/cpmmod_bc_impl.cc +++ b/gr-digital/lib/cpmmod_bc_impl.cc @@ -20,14 +20,14 @@ namespace digital { cpmmod_bc::sptr cpmmod_bc::make( analog::cpm::cpm_type type, float h, int samples_per_sym, int L, double beta) { - return gnuradio::get_initial_sptr(new cpmmod_bc_impl( - "cpmmod_bc", (analog::cpm::cpm_type)type, h, samples_per_sym, L, beta)); + return gnuradio::make_block_sptr<cpmmod_bc_impl>( + "cpmmod_bc", (analog::cpm::cpm_type)type, h, samples_per_sym, L, beta); } cpmmod_bc::sptr cpmmod_bc::make_gmskmod_bc(int samples_per_sym, int L, double beta) { - return gnuradio::get_initial_sptr(new cpmmod_bc_impl( - "gmskmod_bc", analog::cpm::GAUSSIAN, 0.5, samples_per_sym, L, beta)); + return gnuradio::make_block_sptr<cpmmod_bc_impl>( + "gmskmod_bc", analog::cpm::GAUSSIAN, 0.5, samples_per_sym, L, beta); } cpmmod_bc_impl::cpmmod_bc_impl(const std::string& name, |