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/edit_box_msg_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/edit_box_msg_impl.cc')
-rw-r--r-- | gr-qtgui/lib/edit_box_msg_impl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-qtgui/lib/edit_box_msg_impl.cc b/gr-qtgui/lib/edit_box_msg_impl.cc index cfc19201be..8f33adb322 100644 --- a/gr-qtgui/lib/edit_box_msg_impl.cc +++ b/gr-qtgui/lib/edit_box_msg_impl.cc @@ -149,7 +149,7 @@ edit_box_msg_impl::edit_box_msg_impl(data_type_t type, message_port_register_out(d_port); message_port_register_in(pmt::mp("val")); - set_msg_handler(pmt::mp("val"), boost::bind(&edit_box_msg_impl::set_value, this, _1)); + set_msg_handler(pmt::mp("val"), [this](pmt::pmt_t msg) { this->set_value(msg); }); } edit_box_msg_impl::~edit_box_msg_impl() |