diff options
author | Marcus Müller <mmueller@gnuradio.org> | 2020-10-30 18:22:33 +0100 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2020-11-03 14:07:23 -0500 |
commit | 0ddc7dbc95ca6fb4c4a62a3c027104d6dd71fc3b (patch) | |
tree | b454053fdc123711f3011b8a703de38e1d783ba3 /gnuradio-runtime/lib/block_gateway_impl.h | |
parent | 1cfd6287635e339b313e1826fdfda23f474c91c8 (diff) |
modernization: `override` instead of virtual in all compilation units
Diffstat (limited to 'gnuradio-runtime/lib/block_gateway_impl.h')
-rw-r--r-- | gnuradio-runtime/lib/block_gateway_impl.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gnuradio-runtime/lib/block_gateway_impl.h b/gnuradio-runtime/lib/block_gateway_impl.h index c3d53a408e..e03d45518c 100644 --- a/gnuradio-runtime/lib/block_gateway_impl.h +++ b/gnuradio-runtime/lib/block_gateway_impl.h @@ -36,9 +36,9 @@ public: gr_vector_const_void_star& input_items, gr_vector_void_star& output_items) override; - bool start(void); - bool stop(void); - void set_msg_handler_pybind(pmt::pmt_t which_port, std::string& handler_name) + bool start(void) override; + bool stop(void) override; + void set_msg_handler_pybind(pmt::pmt_t which_port, std::string& handler_name) override { if (msg_queue.find(which_port) == msg_queue.end()) { throw std::runtime_error( @@ -52,7 +52,7 @@ protected: typedef std::map<pmt::pmt_t, std::string, pmt::comparator> msg_handlers_pybind_t; msg_handlers_pybind_t d_msg_handlers_pybind; - bool has_msg_handler(pmt::pmt_t which_port) + bool has_msg_handler(pmt::pmt_t which_port) override { if (d_msg_handlers_pybind.find(which_port) != d_msg_handlers_pybind.end()) { return true; @@ -61,7 +61,7 @@ protected: } } - void dispatch_msg(pmt::pmt_t which_port, pmt::pmt_t msg) + void dispatch_msg(pmt::pmt_t which_port, pmt::pmt_t msg) override { // Is there a handler? if (d_msg_handlers_pybind.find(which_port) != d_msg_handlers_pybind.end()) { |