summaryrefslogtreecommitdiff
path: root/src/keys.hh
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2022-08-04 10:54:55 +0200
committerJohannes Altmanninger <aclopte@gmail.com>2022-08-17 00:38:58 +0200
commit0eb4e68c402bcd77ad542e2c6113cb3abcd498d6 (patch)
tree918cbe720f40d9dcdd6b72c66a74d5e37df94cd3 /src/keys.hh
parent01f3d7cbda4b9667fd2e65c6786a0e9140e2890b (diff)
Rename button_to_str() to the more idiomatic to_string()
Analogous to the parent commit. This returns StringView, but it's immortal so it's even better than String.
Diffstat (limited to 'src/keys.hh')
-rw-r--r--src/keys.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keys.hh b/src/keys.hh
index 78c24b59..2914de41 100644
--- a/src/keys.hh
+++ b/src/keys.hh
@@ -103,7 +103,7 @@ class StringView;
KeyList parse_keys(StringView str);
String to_string(Key key);
-StringView button_to_str(Key::MouseButton button);
+StringView to_string(Key::MouseButton button);
Key::MouseButton str_to_button(StringView str);
constexpr Key shift(Key key)