Avoid a copy
This commit is contained in:
parent
2198711123
commit
8c1b5a11fe
1 changed files with 1 additions and 1 deletions
|
|
@ -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::vector<std::string> tokens;
|
||||||
std::string part = "";
|
std::string part = "";
|
||||||
for (size_t i=0; i<str.length(); i++) {
|
for (size_t i=0; i<str.length(); i++) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue