summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/selector_impl.h
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.se>2020-08-26 21:09:02 +0100
committermormj <34754695+mormj@users.noreply.github.com>2020-11-03 14:07:23 -0500
commit1cfd6287635e339b313e1826fdfda23f474c91c8 (patch)
tree1e67c4fe9e800e9f4e3d0c86831b759c8a819954 /gr-blocks/lib/selector_impl.h
parentfe2b23ce9f0eb3e2ccd73db0568c265c22cd6603 (diff)
Add `override` for common virtual function overrides
Mostly done with: ``` find -name "*_impl.h" | xargs sed -i -r '/(void forecast|int work|int general_work|bool check_topology)\(/{:back /\)/b nxt;N;b back;:nxt s/\)$|\)(;)/) override\1/g}' ``` Then I removed an incorrect `work` that this found.
Diffstat (limited to 'gr-blocks/lib/selector_impl.h')
-rw-r--r--gr-blocks/lib/selector_impl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gr-blocks/lib/selector_impl.h b/gr-blocks/lib/selector_impl.h
index 1cf63a6dde..6bbf71697a 100644
--- a/gr-blocks/lib/selector_impl.h
+++ b/gr-blocks/lib/selector_impl.h
@@ -32,8 +32,8 @@ public:
selector_impl(size_t itemsize, unsigned int input_index, unsigned int output_index);
~selector_impl();
- void forecast(int noutput_items, gr_vector_int& ninput_items_required);
- bool check_topology(int ninputs, int noutputs);
+ void forecast(int noutput_items, gr_vector_int& ninput_items_required) override;
+ bool check_topology(int ninputs, int noutputs) override;
void setup_rpc();
void handle_msg_input_index(pmt::pmt_t msg);
void handle_msg_output_index(pmt::pmt_t msg);
@@ -54,7 +54,7 @@ public:
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;
};
} /* namespace blocks */