mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:37:35 +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
39 changed files with 39 additions and 39 deletions
|
@ -123,7 +123,7 @@ protected:
|
|||
size_t backlog() const { return m_backlog; }
|
||||
void set_backlog(size_t backlog) { m_backlog = backlog; }
|
||||
|
||||
virtual StringView class_name() const override { return "Socket"; }
|
||||
virtual StringView class_name() const override { return "Socket"sv; }
|
||||
|
||||
virtual void shut_down_for_reading() { }
|
||||
virtual void shut_down_for_writing() { }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue