From a966020c73d1b6e70ff2285666fd1f2c8c2b1cfa Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Wed, 18 Dec 2019 00:20:09 +0100 Subject: [PATCH] Removed an unnecessary copy --- src/sfizz/Synth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sfizz/Synth.cpp b/src/sfizz/Synth.cpp index a0900485..03365421 100644 --- a/src/sfizz/Synth.cpp +++ b/src/sfizz/Synth.cpp @@ -182,7 +182,7 @@ void sfz::Synth::handleControlOpcodes(const std::vector& members) case hash("Default_path"): [[fallthrough]]; case hash("default_path"): { - const auto newPath = absl::StrReplaceAll(trim(member.value), { { "\\", "/" } }); + auto newPath = absl::StrReplaceAll(trim(member.value), { { "\\", "/" } }); if (fs::exists(originalDirectory / newPath)) { DBG("Changing default sample path to " << newPath); defaultPath = std::move(newPath);