TWP: Fix unnecessary object copies can affect performance.

Coverity CID 1540557
This commit is contained in:
scemino 2024-04-06 14:28:49 +02:00
parent 24eeaa5c32
commit feb8787de6

View File

@ -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;
}