commit eba5f4ecca395ec9a844b24008a548da69ac2f46 parent 0deb09c0bc6e2111426ac59bc4d9d0bcc31c5280 Author: dsp56300 <dsp56300@users.noreply.github.com> Date: Thu, 23 Sep 2021 12:11:31 +0200 fix string copied instead of being referenced Diffstat:
M | source/synthLib/os.cpp | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/source/synthLib/os.cpp b/source/synthLib/os.cpp @@ -66,9 +66,9 @@ namespace synthLib } #endif - auto fixPath = [&](std::string key) + auto fixPath = [&](const std::string& _key) { - const auto end = path.rfind(key); + const auto end = path.rfind(_key); if (end != std::string::npos) path = path.substr(0, end);