diff options
author | Thomas Habets <thomas@habets.se> | 2020-08-29 22:19:55 +0100 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2020-09-09 12:45:08 -0400 |
commit | 80e3cc05aa3943d48f77aff49f39eeeb186b1015 (patch) | |
tree | 9bd06394403abb2c877eaf5ae6d021375df2d929 /gr-blocks/lib/correctiq_man_impl.cc | |
parent | 3e40f271c4fadbcc2a3d5f67895e64f18117dfd5 (diff) |
blocks/correctiq: Clean up member initialization
Diffstat (limited to 'gr-blocks/lib/correctiq_man_impl.cc')
-rw-r--r-- | gr-blocks/lib/correctiq_man_impl.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gr-blocks/lib/correctiq_man_impl.cc b/gr-blocks/lib/correctiq_man_impl.cc index 47a6c970a0..1ab4fa703d 100644 --- a/gr-blocks/lib/correctiq_man_impl.cc +++ b/gr-blocks/lib/correctiq_man_impl.cc @@ -19,6 +19,10 @@ namespace gr { namespace blocks { +namespace { +constexpr int default_const_buffer = 8192; +} + correctiq_man::sptr correctiq_man::make(float real, float imag) { return gnuradio::make_block_sptr<correctiq_man_impl>(real, imag); @@ -31,9 +35,10 @@ correctiq_man_impl::correctiq_man_impl(float real, float imag) : gr::sync_block("correctiq_man", gr::io_signature::make(1, 1, sizeof(gr_complex)), gr::io_signature::make(1, 1, sizeof(gr_complex))), - d_k(real, imag) + d_k(real, imag), + d_volk_const_buffer(default_const_buffer) { - set_const_buffer(8192); + set_const_buffer(default_const_buffer); message_port_register_in(pmt::mp("set_real")); set_msg_handler(pmt::mp("set_real"), |