1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:57: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:
Brian Gianforcaro 2021-10-02 15:24:00 -07:00 committed by Andreas Kling
parent 836c22ea13
commit 5f1c98e576
39 changed files with 39 additions and 39 deletions

View file

@ -51,7 +51,7 @@ public:
u8* framebuffer_data();
private:
virtual StringView class_name() const override { return "VirtIOFrameBuffer"; }
virtual StringView class_name() const override { return "VirtIOFrameBuffer"sv; }
Protocol::DisplayInfoResponse::Display const& display_info() const;
Protocol::DisplayInfoResponse::Display& display_info();

View file

@ -79,7 +79,7 @@ public:
void flush_dirty_rectangle(ScanoutID, Protocol::Rect const& dirty_rect, ResourceID);
private:
virtual StringView class_name() const override { return "VirtIOGPU"; }
virtual StringView class_name() const override { return "VirtIOGPU"sv; }
struct Scanout {
RefPtr<FrameBufferDevice> framebuffer;