mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
TWP: Fix unnecessary object copies can affect performance.
Coverity CID 1540557
This commit is contained in:
parent
24eeaa5c32
commit
feb8787de6
@ -356,7 +356,7 @@ Common::SharedPtr<YCond> YackParser::parseCondition() {
|
||||
return Common::SharedPtr<YTempOnce>(new YTempOnce(line));
|
||||
}
|
||||
Common::SharedPtr<YCodeCond> pCondition(new YCodeCond(line));
|
||||
pCondition->_code = conditionText;
|
||||
pCondition->_code = Common::move(conditionText);
|
||||
return pCondition;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user