mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
ExpressionParser: Make Lexer ctor explicit and move argument.
This commit is contained in:
parent
72302d9c42
commit
7295458c11
@ -34,7 +34,7 @@ bool Token::IsBinaryOperator() const
|
|||||||
return type >= TOK_BINARY_OPS_BEGIN && type < TOK_BINARY_OPS_END;
|
return type >= TOK_BINARY_OPS_BEGIN && type < TOK_BINARY_OPS_END;
|
||||||
}
|
}
|
||||||
|
|
||||||
Lexer::Lexer(const std::string& expr_) : expr(expr_)
|
Lexer::Lexer(std::string expr_) : expr(std::move(expr_))
|
||||||
{
|
{
|
||||||
it = expr.begin();
|
it = expr.begin();
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,7 @@ public:
|
|||||||
std::string expr;
|
std::string expr;
|
||||||
std::string::iterator it;
|
std::string::iterator it;
|
||||||
|
|
||||||
Lexer(const std::string& expr_);
|
explicit Lexer(std::string expr_);
|
||||||
|
|
||||||
ParseStatus Tokenize(std::vector<Token>& tokens);
|
ParseStatus Tokenize(std::vector<Token>& tokens);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user