Avoid a copy

This commit is contained in:
Paul Fd 2021-09-10 13:59:20 +02:00
parent 2198711123
commit 8c1b5a11fe

View file

@ -194,7 +194,7 @@ bool load_instrument(const char *fpath) {
}
std::vector<std::string> string_tokenize(const std::string str) {
std::vector<std::string> string_tokenize(const std::string& str) {
std::vector<std::string> tokens;
std::string part = "";
for (size_t i=0; i<str.length(); i++) {