From 0ddc7dbc95ca6fb4c4a62a3c027104d6dd71fc3b Mon Sep 17 00:00:00 2001
From: Marcus Müller <mmueller@gnuradio.org>
Date: Fri, 30 Oct 2020 18:22:33 +0100
Subject: modernization: `override` instead of virtual in all compilation units

---
 gnuradio-runtime/lib/block_gateway_impl.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'gnuradio-runtime/lib/block_gateway_impl.h')

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()) {
-- 
cgit v1.2.3