From cee579077f2fbcc671e92d3c56b0e6caf20a52c6 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 22 Jan 2018 10:05:39 -0800 Subject: ddc: duc: Factor out usage of boost::bind() Replace with lambdas. --- host/lib/rfnoc/ddc_block_ctrl_impl.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'host/lib/rfnoc/ddc_block_ctrl_impl.cpp') 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( @@ -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("freq", chan); + const double default_freq = get_arg("freq", chan); _tree->access(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("output_rate", chan); + const double default_output_rate = + get_arg("output_rate", chan); _tree->access(get_arg_path("output_rate/value", chan)) .set_coercer([this, chan](const double value){ return this->set_output_rate(value, chan); -- cgit v1.2.3