diff options
author | Jack Lloyd <[email protected]> | 2022-02-04 18:05:34 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2022-02-06 08:52:16 -0500 |
commit | fbb7c5fba1bcde2460dda48c1423a23b3b3062bf (patch) | |
tree | c0b9cd348067f0813d80e9b1b23b149d1a0d0af2 /src/cli/cli.h | |
parent | 3c8d79246c7c5c57296d3165922b58aad401e5e3 (diff) |
Fix clang-tidy performance warnings
Diffstat (limited to 'src/cli/cli.h')
-rw-r--r-- | src/cli/cli.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cli/cli.h b/src/cli/cli.h index c8aac22e3..c7e5163e2 100644 --- a/src/cli/cli.h +++ b/src/cli/cli.h @@ -167,12 +167,12 @@ class Command * Read a file calling consumer_fn() with the inputs */ void read_file(const std::string& input_file, - std::function<void (uint8_t[], size_t)> consumer_fn, + const std::function<void (uint8_t[], size_t)>& consumer_fn, size_t buf_size = 0) const; void do_read_file(std::istream& in, - std::function<void (uint8_t[], size_t)> consumer_fn, + const std::function<void (uint8_t[], size_t)>& consumer_fn, size_t buf_size = 0) const; template<typename Alloc> @@ -207,7 +207,7 @@ class Command class Registration final { public: - Registration(const std::string& name, cmd_maker_fn maker_fn); + Registration(const std::string& name, const cmd_maker_fn& maker_fn); }; }; |