diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2019-10-12 12:28:19 -0500 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2019-10-12 12:28:19 -0500 |
| commit | 7295458c11e1465c9e0a823620ea935396c4ea39 (patch) | |
| tree | 2061e8975d072707af424bec932b8cf15ecb202a /Source/Core/InputCommon/ControlReference | |
| parent | 72302d9c4224271a606f2782dec7dc725658b150 (diff) | |
ExpressionParser: Make Lexer ctor explicit and move argument.
Diffstat (limited to 'Source/Core/InputCommon/ControlReference')
| -rw-r--r-- | Source/Core/InputCommon/ControlReference/ExpressionParser.cpp | 2 | ||||
| -rw-r--r-- | Source/Core/InputCommon/ControlReference/ExpressionParser.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/ControlReference/ExpressionParser.cpp b/Source/Core/InputCommon/ControlReference/ExpressionParser.cpp index 7e8e54b1ec..00afc5e036 100644 --- a/Source/Core/InputCommon/ControlReference/ExpressionParser.cpp +++ b/Source/Core/InputCommon/ControlReference/ExpressionParser.cpp @@ -34,7 +34,7 @@ bool Token::IsBinaryOperator() const 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(); } diff --git a/Source/Core/InputCommon/ControlReference/ExpressionParser.h b/Source/Core/InputCommon/ControlReference/ExpressionParser.h index 994f8c201b..cab6096c0e 100644 --- a/Source/Core/InputCommon/ControlReference/ExpressionParser.h +++ b/Source/Core/InputCommon/ControlReference/ExpressionParser.h @@ -71,7 +71,7 @@ public: std::string expr; std::string::iterator it; - Lexer(const std::string& expr_); + explicit Lexer(std::string expr_); ParseStatus Tokenize(std::vector<Token>& tokens); |
