diff options
| author | Connor McLaughlin <stenzek@gmail.com> | 2019-08-09 23:39:01 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-09 23:39:01 +1000 |
| commit | 48ca2c6f2e70111cf72052d5d258328c2fdb9afd (patch) | |
| tree | 9d69b41773993fb46b53fea45377b85136b6014c /Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp | |
| parent | 0ab7e2eed78731db4b0b2c48f35f85d3a6722272 (diff) | |
| parent | 117a60ceb271594a659392892de2cd1a957bef48 (diff) | |
Merge pull request #8233 from JosJuice/stringutil-string-view
StringUtil: Use std::string_view more
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp index 4443eaad3a..de14875f56 100644 --- a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp +++ b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp @@ -313,7 +313,7 @@ std::string evdevDevice::Button::GetName() const { const char* name = libevdev_event_code_get_name(EV_KEY, m_code); if (name) - return StripSpaces(name); + return std::string(StripSpaces(name)); } // But controllers use codes above 0x100, and the standard label often doesn't match. // We are better off with Button 0 and so on. |
