mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 17:48:37 +00:00
Kernel: Use operator ""sv
in all class_name() implementations
Previously there was a mix of returning plain strings and returning explicit string views using `operator ""sv`. This change switches them all to standardized on `operator ""sv` as it avoids a call to strlen.
This commit is contained in:
parent
836c22ea13
commit
5f1c98e576
Notes:
sideshowbarker
2024-07-18 03:09:39 +09:00
Author: https://github.com/bgianfo
Commit: 5f1c98e576
Pull-request: https://github.com/SerenityOS/serenity/pull/10325
Reviewed-by: https://github.com/BenWiederhake
39 changed files with 39 additions and 39 deletions
|
@ -49,7 +49,7 @@ protected:
|
|||
mutable Spinlock m_queue_lock;
|
||||
CircularQueue<Event, 16> m_queue;
|
||||
// ^CharacterDevice
|
||||
virtual StringView class_name() const override { return "KeyboardDevice"; }
|
||||
virtual StringView class_name() const override { return "KeyboardDevice"sv; }
|
||||
|
||||
u8 m_modifiers { 0 };
|
||||
bool m_caps_lock_to_ctrl_pressed { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue