diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-01-22 10:05:39 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-02-19 14:51:47 -0800 |
commit | cee579077f2fbcc671e92d3c56b0e6caf20a52c6 (patch) | |
tree | b7cad1e2219f197bbbb720344f16980f20bdb039 /host/lib/rfnoc/ddc_block_ctrl_impl.cpp | |
parent | 74f45ae2a723107adce1038a708d2958aca97487 (diff) | |
download | uhd-cee579077f2fbcc671e92d3c56b0e6caf20a52c6.tar.gz uhd-cee579077f2fbcc671e92d3c56b0e6caf20a52c6.tar.bz2 uhd-cee579077f2fbcc671e92d3c56b0e6caf20a52c6.zip |
ddc: duc: Factor out usage of boost::bind()
Replace with lambdas.
Diffstat (limited to 'host/lib/rfnoc/ddc_block_ctrl_impl.cpp')
-rw-r--r-- | host/lib/rfnoc/ddc_block_ctrl_impl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/rfnoc/ddc_block_ctrl_impl.cpp b/host/lib/rfnoc/ddc_block_ctrl_impl.cpp index 8697c84cf..4fb3d567e 100644 --- a/host/lib/rfnoc/ddc_block_ctrl_impl.cpp +++ b/host/lib/rfnoc/ddc_block_ctrl_impl.cpp @@ -1,5 +1,5 @@ // -// Copyright 2016 Ettus Research +// Copyright 2016-2018 Ettus Research, a National Instruments Company // // SPDX-License-Identifier: GPL-3.0 // @@ -20,7 +20,6 @@ using namespace uhd::rfnoc; class ddc_block_ctrl_impl : public ddc_block_ctrl { public: - UHD_RFNOC_BLOCK_CONSTRUCTOR(ddc_block_ctrl) , _fpga_compat(user_reg_read64(RB_REG_COMPAT_NUM)) , _num_halfbands(uhd::narrow_cast<size_t>( @@ -41,14 +40,15 @@ public: // Argument/prop tree hooks for (size_t chan = 0; chan < get_input_ports().size(); chan++) { - double default_freq = get_arg<double>("freq", chan); + const double default_freq = get_arg<double>("freq", chan); _tree->access<double>(get_arg_path("freq/value", chan)) .set_coercer([this, chan](const double value){ return this->set_freq(value, chan); }) .set(default_freq); ; - double default_output_rate = get_arg<double>("output_rate", chan); + const double default_output_rate = + get_arg<double>("output_rate", chan); _tree->access<double>(get_arg_path("output_rate/value", chan)) .set_coercer([this, chan](const double value){ return this->set_output_rate(value, chan); |