diff options
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); }; }; |