the return values should be eligible for copy elision

This commit is contained in:
Lauchmelder 2021-11-24 14:58:03 +01:00
parent f348d4fc08
commit ac3671def5

View file

@ -50,7 +50,7 @@ std::vector<Token> tokenize_line(const std::string& line)
} }
} }
return std::move(tokens); return tokens;
} }
// Main parsing function // Main parsing function
@ -115,7 +115,7 @@ std::vector<Instruction> parse_instructions(const std::string& code_arg)
} }
return std::move(instructions); return instructions;
} }
bool is_keyword(std::string str) bool is_keyword(std::string str)