From c35cbf038d0992887b8d4bcf5d4ff83c323ec60c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 8 Dec 2019 18:03:43 +0100 Subject: Cleanup: Avoid parameter copying overhead --- src/server/Task.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/server/Task.hpp') diff --git a/src/server/Task.hpp b/src/server/Task.hpp index a6489e61..e8b658c3 100644 --- a/src/server/Task.hpp +++ b/src/server/Task.hpp @@ -73,7 +73,9 @@ public: void run(RunContext& context); /** Pretty print task to the given stream (recursively). */ - void dump(std::function sink, unsigned indent, bool first) const; + void dump(const std::function& sink, + unsigned indent, + bool first) const; /** Return true iff this is an empty task. */ bool empty() const { return _mode != Mode::SINGLE && _children.empty(); } -- cgit v1.2.1