diff options
author | Andreas Kling <kling@serenityos.org> | 2021-07-11 01:46:09 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-11 01:46:59 +0200 |
commit | c9f6786e8b726dfe3d8d4ee13e34be561c093fe5 (patch) | |
tree | 0252a8e9b9bae62762c466e33e3b1e462fe54e43 /Kernel/Graphics | |
parent | fa9111ac463d645bb801140b1e121d2f00c0efa1 (diff) | |
download | serenity-c9f6786e8b726dfe3d8d4ee13e34be561c093fe5.zip |
Kernel: Make various T::class_name() and similar return StringView
Instead of returning char const*, we can also give you a StringView.
Diffstat (limited to 'Kernel/Graphics')
-rw-r--r-- | Kernel/Graphics/FramebufferDevice.h | 2 | ||||
-rw-r--r-- | Kernel/Graphics/VirtIOGPU/VirtIOFrameBufferDevice.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Graphics/FramebufferDevice.h b/Kernel/Graphics/FramebufferDevice.h index 55dfe90302..ebe3bbcc77 100644 --- a/Kernel/Graphics/FramebufferDevice.h +++ b/Kernel/Graphics/FramebufferDevice.h @@ -38,7 +38,7 @@ public: private: // ^File - virtual const char* class_name() const override { return "FramebufferDevice"; } + virtual StringView class_name() const override { return "FramebufferDevice"; } virtual bool can_read(const FileDescription&, size_t) const override final { return true; } virtual bool can_write(const FileDescription&, size_t) const override final { return true; } diff --git a/Kernel/Graphics/VirtIOGPU/VirtIOFrameBufferDevice.h b/Kernel/Graphics/VirtIOGPU/VirtIOFrameBufferDevice.h index 323feecd93..6955d51d0d 100644 --- a/Kernel/Graphics/VirtIOGPU/VirtIOFrameBufferDevice.h +++ b/Kernel/Graphics/VirtIOGPU/VirtIOFrameBufferDevice.h @@ -51,7 +51,7 @@ public: u8* framebuffer_data(); private: - virtual const char* class_name() const override { return "VirtIOFrameBuffer"; } + virtual StringView class_name() const override { return "VirtIOFrameBuffer"; } VirtIOGPURespDisplayInfo::VirtIOGPUDisplayOne const& display_info() const; VirtIOGPURespDisplayInfo::VirtIOGPUDisplayOne& display_info(); |