diff options
author | David Robillard <d@drobilla.net> | 2020-12-16 11:05:07 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-16 11:06:32 +0100 |
commit | 49b12d0005e2028d15cce24484c9718f18169f74 (patch) | |
tree | a911df9d085d23e69bc96054a68a809163d2e800 /sord | |
parent | 098e160528aa4aafeb73c9d2d765d395e574efa3 (diff) | |
download | sord-49b12d0005e2028d15cce24484c9718f18169f74.tar.gz sord-49b12d0005e2028d15cce24484c9718f18169f74.tar.bz2 sord-49b12d0005e2028d15cce24484c9718f18169f74.zip |
C++: Avoid parameter copy overhead
Diffstat (limited to 'sord')
-rw-r--r-- | sord/sordmm.hpp | 2 |
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; |