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/test.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

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

diff --git a/gnuradio-runtime/lib/test.h b/gnuradio-runtime/lib/test.h
index 2b8dc78252..7c9842ad4a 100644
--- a/gnuradio-runtime/lib/test.h
+++ b/gnuradio-runtime/lib/test.h
@@ -53,12 +53,12 @@ GR_RUNTIME_API test_sptr make_test(const std::string& name = std::string("test")
 class GR_RUNTIME_API test : public block
 {
 public:
-    ~test() {}
+    ~test() override {}
 
     int general_work(int noutput_items,
                      gr_vector_int& ninput_items,
                      gr_vector_const_void_star& input_items,
-                     gr_vector_void_star& output_items);
+                     gr_vector_void_star& output_items) override;
 
     // ----------------------------------------------------------------
     //		override these to define your behavior
@@ -74,7 +74,7 @@ public:
      * number of data items required on each input stream. The
      * estimate doesn't have to be exact, but should be close.
      */
-    void forecast(int noutput_items, gr_vector_int& ninput_items_required)
+    void forecast(int noutput_items, gr_vector_int& ninput_items_required) override
     {
         unsigned ninputs = ninput_items_required.size();
         for (unsigned i = 0; i < ninputs; i++)
@@ -103,7 +103,7 @@ public:
      * This check is in addition to the constraints specified by the
      * input and output gr::io_signatures.
      */
-    bool check_topology(int ninputs, int noutputs) { return d_check_topology; }
+    bool check_topology(int ninputs, int noutputs) override { return d_check_topology; }
 
     // ----------------------------------------------------------------
     /*
@@ -119,7 +119,7 @@ public:
      * returns true.  Generally speaking, you don't need to override
      * this.
      */
-    int fixed_rate_ninput_to_noutput(int ninput)
+    int fixed_rate_ninput_to_noutput(int ninput) override
     {
         return (int)((double)ninput / relative_rate());
     }
@@ -129,7 +129,7 @@ public:
      * required to produce noutput. N.B. this is only defined if
      * fixed_rate returns true.
      */
-    int fixed_rate_noutput_to_ninput(int noutput)
+    int fixed_rate_noutput_to_ninput(int noutput) override
     {
         return (int)((double)noutput * relative_rate());
     }
-- 
cgit v1.2.3