diff options
author | David Robillard <d@drobilla.net> | 2024-10-06 17:14:26 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-10-11 19:55:55 -0400 |
commit | 83ad9c6c4d015ff1a8075bf69036d284af24a18e (patch) | |
tree | d280c95347ab6b13e86fcedd6549daee122ed73d /include/ingen/ClashAvoider.hpp | |
parent | c7d1976928e5d2e1c22b6cc8ac67083c60eae0a1 (diff) | |
download | ingen-83ad9c6c4d015ff1a8075bf69036d284af24a18e.tar.gz ingen-83ad9c6c4d015ff1a8075bf69036d284af24a18e.tar.bz2 ingen-83ad9c6c4d015ff1a8075bf69036d284af24a18e.zip |
Pass strings and large structures by const reference
Diffstat (limited to 'include/ingen/ClashAvoider.hpp')
-rw-r--r-- | include/ingen/ClashAvoider.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<raul::Path, unsigned>; |