summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControlReference/ExpressionParser.cpp
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2019-10-12 12:28:19 -0500
committerJordan Woyak <jordan.woyak@gmail.com>2019-10-12 12:28:19 -0500
commit7295458c11e1465c9e0a823620ea935396c4ea39 (patch)
tree2061e8975d072707af424bec932b8cf15ecb202a /Source/Core/InputCommon/ControlReference/ExpressionParser.cpp
parent72302d9c4224271a606f2782dec7dc725658b150 (diff)
ExpressionParser: Make Lexer ctor explicit and move argument.
Diffstat (limited to 'Source/Core/InputCommon/ControlReference/ExpressionParser.cpp')
-rw-r--r--Source/Core/InputCommon/ControlReference/ExpressionParser.cpp2
1 files changed, 1 insertions, 1 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();
}