diff options
author | Johannes Demel <demel@ant.uni-bremen.de> | 2020-05-09 15:28:58 +0200 |
---|---|---|
committer | Josh Morman <mormjb@gmail.com> | 2020-06-04 10:05:48 -0400 |
commit | 6f037812eda09459fbc0a2d9c9eaada16dc475b7 (patch) | |
tree | c657779e3f85756189d19440f71a74b0fb583324 /gr-qtgui/lib/time_sink_c_impl.cc | |
parent | 320aa710c42c884ec7395b5c8332f601ee1895fc (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/time_sink_c_impl.cc')
-rw-r--r-- | gr-qtgui/lib/time_sink_c_impl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-qtgui/lib/time_sink_c_impl.cc b/gr-qtgui/lib/time_sink_c_impl.cc index d295741db7..31e583583c 100644 --- a/gr-qtgui/lib/time_sink_c_impl.cc +++ b/gr-qtgui/lib/time_sink_c_impl.cc @@ -68,7 +68,7 @@ time_sink_c_impl::time_sink_c_impl(int size, // setup PDU handling input port message_port_register_in(pmt::mp("in")); - set_msg_handler(pmt::mp("in"), boost::bind(&time_sink_c_impl::handle_pdus, this, _1)); + set_msg_handler(pmt::mp("in"), [this](pmt::pmt_t msg) { this->handle_pdus(msg); }); // +2 for the PDU message buffers for (unsigned int n = 0; n < d_nconnections + 2; n++) { |