From 83ad9c6c4d015ff1a8075bf69036d284af24a18e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 6 Oct 2024 17:14:26 -0400 Subject: Pass strings and large structures by const reference --- include/ingen/ClashAvoider.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/ingen/ClashAvoider.hpp') diff --git a/include/ingen/ClashAvoider.hpp b/include/ingen/ClashAvoider.hpp index c1d62754..c0091fbc 100644 --- a/include/ingen/ClashAvoider.hpp +++ b/include/ingen/ClashAvoider.hpp @@ -48,9 +48,9 @@ public: * @param new_path The new path that `old_path` was mapped to * @param name The old name. */ - static std::string adjust_name(const raul::Path& old_path, - const raul::Path& new_path, - std::string name); + static std::string adjust_name(const raul::Path& old_path, + const raul::Path& new_path, + const std::string& name); private: using Offsets = std::map; -- cgit v1.2.1