summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2019-07-08 13:35:53 +0200
committerJosJuice <josjuice@gmail.com>2019-07-23 14:49:12 +0200
commita2a1e04fc9c26c7d4ae8af5d1229a906c0ae066d (patch)
tree26345ab2b4e6812b5ed12debcadda97323493236 /Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp
parent29ba53f6c32313e551b4797a84a4edf477a4d54e (diff)
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.cpp2
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.