mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
TWP: Fix unnecessary object copies can affect performance.
Coverity CID 1540623
This commit is contained in:
parent
655b3e517c
commit
9f99b74dd3
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user