summaryrefslogtreecommitdiffstats
path: root/sord
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-16 11:05:07 +0100
committerDavid Robillard <d@drobilla.net>2020-12-16 11:06:32 +0100
commit49b12d0005e2028d15cce24484c9718f18169f74 (patch)
treea911df9d085d23e69bc96054a68a809163d2e800 /sord
parent098e160528aa4aafeb73c9d2d765d395e574efa3 (diff)
downloadsord-49b12d0005e2028d15cce24484c9718f18169f74.tar.gz
sord-49b12d0005e2028d15cce24484c9718f18169f74.tar.bz2
sord-49b12d0005e2028d15cce24484c9718f18169f74.zip
C++: Avoid parameter copy overhead
Diffstat (limited to 'sord')
-rw-r--r--sord/sordmm.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sord/sordmm.hpp b/sord/sordmm.hpp
index be4b815..a91ebc2 100644
--- a/sord/sordmm.hpp
+++ b/sord/sordmm.hpp
@@ -228,7 +228,7 @@ public:
inline float to_float() const;
inline bool to_bool() const;
- inline static Node blank_id(World& world, const std::string base="b") {
+ inline static Node blank_id(World& world, const std::string& base="b") {
const uint64_t num = world.blank_id();
std::ostringstream ss;
ss << base << num;