diff options
author | Martin Braun <martin.braun@ettus.com> | 2021-01-08 09:33:36 +0100 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-03-04 08:07:26 -0600 |
commit | 107a49c0c236940da7d3bd0f57da4bc1e2a34cb4 (patch) | |
tree | fdeaad56030a02948377c45838dab97beb7a5c84 /host/lib/rfnoc/window_block_control.cpp | |
parent | 7d5e48032baa62cbe7467833b9e057900602f4b9 (diff) | |
download | uhd-107a49c0c236940da7d3bd0f57da4bc1e2a34cb4.tar.gz uhd-107a49c0c236940da7d3bd0f57da4bc1e2a34cb4.tar.bz2 uhd-107a49c0c236940da7d3bd0f57da4bc1e2a34cb4.zip |
host: Update code base using clang-tidy
The checks from the new clang-tidy file are applied to the source tree
using:
$ find . -name "*.cpp" | sort -u | xargs \
--max-procs 8 --max-args 1 clang-tidy --format-style=file \
--fix -p /path/to/compile_commands.json
Diffstat (limited to 'host/lib/rfnoc/window_block_control.cpp')
-rw-r--r-- | host/lib/rfnoc/window_block_control.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/rfnoc/window_block_control.cpp b/host/lib/rfnoc/window_block_control.cpp index 1bd6a1295..5d3201838 100644 --- a/host/lib/rfnoc/window_block_control.cpp +++ b/host/lib/rfnoc/window_block_control.cpp @@ -32,12 +32,12 @@ public: _register_props(); } - size_t get_max_num_coefficients(const size_t chan) const + size_t get_max_num_coefficients(const size_t chan) const override { return _max_len.at(chan); } - void set_coefficients(const std::vector<int16_t>& coeffs, const size_t chan) + void set_coefficients(const std::vector<int16_t>& coeffs, const size_t chan) override { if (coeffs.size() > _max_len.at(chan)) { std::string error_msg = "Too many window coefficients specified (max " @@ -49,7 +49,7 @@ public: _program_coefficients(chan); } - std::vector<int16_t> get_coefficients(const size_t chan) const + std::vector<int16_t> get_coefficients(const size_t chan) const override { return _coeffs.at(chan); } |