mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-03 18:55:41 +00:00
Use std::move when relevant in Token constructor
This commit is contained in:
1 parent
60e76b2da4
commit
85e044f5be
1 file changed
+2
-2
+2
-2
@@ -51,8 +51,8 @@ struct Token {
|
||||
Token() : type(T_(NUMBER)), value(std::monostate{}) {}
|
||||
Token(int type_) : type(type_), value(std::monostate{}) {}
|
||||
Token(int type_, uint32_t value_) : type(type_), value(value_) {}
|
||||
Token(int type_, std::string const &value_) : type(type_), value(value_) {}
|
||||
Token(int type_, std::string &&value_) : type(type_), value(value_) {}
|
||||
Token(int type_, std::string const &value_) : type(type_), value(std::move(value_)) {}
|
||||
Token(int type_, std::string &&value_) : type(type_), value(std::move(value_)) {}
|
||||
};
|
||||
|
||||
// This map lists all RGBASM keywords which `yylex_NORMAL` lexes as identifiers.
|
||||
|
||||
Reference in new issue
Block a user