From 10fea99d8049d3224f736bcfaa1cf981fa0d14ec Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 22 Nov 2019 14:51:57 -0500 Subject: InputCommon/FunctionExpression: Make MakeFunctionExpression() take a std::string_view There's nothing within this function that requires a copy of the string to be made, so we can make use of a non-owning view --- Source/Core/InputCommon/ControlReference/FunctionExpression.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/Core/InputCommon/ControlReference/FunctionExpression.h') diff --git a/Source/Core/InputCommon/ControlReference/FunctionExpression.h b/Source/Core/InputCommon/ControlReference/FunctionExpression.h index 44d9092ce9..e247d9a623 100644 --- a/Source/Core/InputCommon/ControlReference/FunctionExpression.h +++ b/Source/Core/InputCommon/ControlReference/FunctionExpression.h @@ -6,6 +6,7 @@ #include #include +#include #include #include @@ -47,6 +48,6 @@ private: std::vector> m_args; }; -std::unique_ptr MakeFunctionExpression(std::string name); +std::unique_ptr MakeFunctionExpression(std::string_view name); } // namespace ciface::ExpressionParser -- cgit v1.2.3