TWP: Fix unnecessary object copies can affect performance.

Coverity CID 1540623
This commit is contained in:
scemino 2024-04-06 14:40:13 +02:00
parent 655b3e517c
commit 9f99b74dd3

View File

@ -34,7 +34,7 @@ void TextDb::parseTsv(Common::SeekableReadStream &stream) {
int pos = line.find('\t', 0);
int id = atoi(line.c_str());
Common::String s = line.substr(pos + 1);
_texts[id] = s;
_texts[id] = Common::move(s);
debugC(kDebugText, "%d: %s", id, _texts[id].c_str());
}
}