StringUtil: Use std::string_view more
This commit is contained in:
1 parent
29ba53f6c3
commit
a2a1e04fc9
13 files changed
+92
-83
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user