mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-11 16:49:28 +02:00
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
This commit is contained in:
@ -447,7 +447,7 @@ private:
|
||||
mutable Clock::time_point m_release_time = Clock::now();
|
||||
};
|
||||
|
||||
std::unique_ptr<FunctionExpression> MakeFunctionExpression(std::string name)
|
||||
std::unique_ptr<FunctionExpression> MakeFunctionExpression(std::string_view name)
|
||||
{
|
||||
if ("not" == name)
|
||||
return std::make_unique<NotExpression>();
|
||||
|
Reference in New Issue
Block a user