summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/waterfall_sink_c_impl.cc
diff options
context:
space:
mode:
authorJohannes Demel <demel@ant.uni-bremen.de>2020-05-09 15:28:58 +0200
committerJosh Morman <mormjb@gmail.com>2020-06-04 10:05:48 -0400
commit6f037812eda09459fbc0a2d9c9eaada16dc475b7 (patch)
treec657779e3f85756189d19440f71a74b0fb583324 /gr-qtgui/lib/waterfall_sink_c_impl.cc
parent320aa710c42c884ec7395b5c8332f601ee1895fc (diff)
msg_handler: Use lambdas in gr-qtgui
gr-qtgui uses lambdas instead of `boost::bind` to register message handlers now. This component makes quite heavy use of message handlers.
Diffstat (limited to 'gr-qtgui/lib/waterfall_sink_c_impl.cc')
-rw-r--r--gr-qtgui/lib/waterfall_sink_c_impl.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/gr-qtgui/lib/waterfall_sink_c_impl.cc b/gr-qtgui/lib/waterfall_sink_c_impl.cc
index a459ef76d4..7ca1e62137 100644
--- a/gr-qtgui/lib/waterfall_sink_c_impl.cc
+++ b/gr-qtgui/lib/waterfall_sink_c_impl.cc
@@ -105,20 +105,17 @@ waterfall_sink_c_impl::waterfall_sink_c_impl(int fftsize,
// setup bw input port
message_port_register_in(d_port_bw);
- set_msg_handler(d_port_bw,
- boost::bind(&waterfall_sink_c_impl::handle_set_bw, this, _1));
+ set_msg_handler(d_port_bw, [this](pmt::pmt_t msg) { this->handle_set_bw(msg); });
// setup output message port to post frequency when display is
// double-clicked
message_port_register_out(d_port);
message_port_register_in(d_port);
- set_msg_handler(d_port,
- boost::bind(&waterfall_sink_c_impl::handle_set_freq, this, _1));
+ set_msg_handler(d_port, [this](pmt::pmt_t msg) { this->handle_set_freq(msg); });
// setup PDU handling input port
message_port_register_in(pmt::mp("in"));
- set_msg_handler(pmt::mp("in"),
- boost::bind(&waterfall_sink_c_impl::handle_pdus, this, _1));
+ set_msg_handler(pmt::mp("in"), [this](pmt::pmt_t msg) { this->handle_pdus(msg); });
}
waterfall_sink_c_impl::~waterfall_sink_c_impl()