No need to trim the sample twice

This commit is contained in:
Paul Ferrand 2019-12-16 00:03:33 +01:00
parent dc879a8a07
commit 6b08baaab6

View file

@ -51,7 +51,7 @@ bool sfz::Region::parseOpcode(const Opcode& opcode)
if (trimmedSample[0] == '*')
sample = std::string(trimmedSample);
else
sample = absl::StrCat(defaultPath, absl::StrReplaceAll(trim(opcode.value), { { "\\", "/" } }));
sample = absl::StrCat(defaultPath, absl::StrReplaceAll(trimmedSample, { { "\\", "/" } }));
}
break;
case hash("delay"):