Remove pointless std::move from non-move constructor

This commit is contained in:
Rangi
2026-07-03 13:12:29 -04:00
parent 2f604bfa9a
commit daba94b495
+1 -1
View File
@@ -63,7 +63,7 @@ struct Token {
);
}
Token(int type_, uint32_t value_) : type(type_), value(value_) { assume(type == T_(NUMBER)); }
Token(int type_, std::string const &value_) : type(type_), value(std::move(value_)) {
Token(int type_, std::string const &value_) : type(type_), value(value_) {
assume(type == T_(STRING) || type == T_(CHARACTER));
}
Token(int type_, std::string &&value_) : type(type_), value(std::move(value_)) {