summaryrefslogtreecommitdiffstats
path: root/src/ClashAvoider.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-10-06 17:14:26 -0400
committerDavid Robillard <d@drobilla.net>2024-10-11 19:55:55 -0400
commit83ad9c6c4d015ff1a8075bf69036d284af24a18e (patch)
treed280c95347ab6b13e86fcedd6549daee122ed73d /src/ClashAvoider.cpp
parentc7d1976928e5d2e1c22b6cc8ac67083c60eae0a1 (diff)
downloadingen-83ad9c6c4d015ff1a8075bf69036d284af24a18e.tar.gz
ingen-83ad9c6c4d015ff1a8075bf69036d284af24a18e.tar.bz2
ingen-83ad9c6c4d015ff1a8075bf69036d284af24a18e.zip
Pass strings and large structures by const reference
Diffstat (limited to 'src/ClashAvoider.cpp')
-rw-r--r--src/ClashAvoider.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ClashAvoider.cpp b/src/ClashAvoider.cpp
index a4f9fbee..0ed1da73 100644
--- a/src/ClashAvoider.cpp
+++ b/src/ClashAvoider.cpp
@@ -152,9 +152,9 @@ numeric_suffix_start(const std::string& str)
}
std::string
-ClashAvoider::adjust_name(const raul::Path& old_path,
- const raul::Path& new_path,
- std::string name)
+ClashAvoider::adjust_name(const raul::Path& old_path,
+ const raul::Path& new_path,
+ const std::string& name)
{
const auto name_suffix_start = numeric_suffix_start(name);
if (!name_suffix_start) {