mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-16 17:31:51 +03:00
remove redundant moves
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user