mirror of
https://github.com/gbdev/rgbds.git
synced 2026-08-19 21:34:31 +00:00
Remove pointless std::move from non-move constructor
This commit is contained in:
+1
-1
@@ -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_)) {
|
||||
|
||||
Reference in New Issue
Block a user