remove redundant moves

This commit is contained in:
Konstantinos Margaritis
2024-01-17 17:15:32 +02:00
parent 9fac2bf78d
commit 5e1972efce
5 changed files with 5 additions and 5 deletions

View File

@@ -2024,7 +2024,7 @@ unique_ptr<Component> parse(const char *ptr, ParseMode &globalMode) {
// Ensure that all references are valid.
checkReferences(*rootSeq, groupIndex, groupNames);
return std::move(rootSeq);
return rootSeq;
} catch (LocatedParseError &error) {
if (ts >= ptr && ts <= pe) {
error.locate(ts - ptr);