diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-10-02 15:24:00 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-03 13:36:10 +0200 |
commit | 5f1c98e5764c00b4601c959013291c8804e35618 (patch) | |
tree | cf0ffd7806a9f5e779db322758d6e2495e55a534 /Kernel/Devices/ZeroDevice.h | |
parent | 836c22ea1370703279791a864645ab2c6aad2dac (diff) | |
download | serenity-5f1c98e5764c00b4601c959013291c8804e35618.zip |
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.
Diffstat (limited to 'Kernel/Devices/ZeroDevice.h')
-rw-r--r-- | Kernel/Devices/ZeroDevice.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Devices/ZeroDevice.h b/Kernel/Devices/ZeroDevice.h index 63d02f1500..33161b326f 100644 --- a/Kernel/Devices/ZeroDevice.h +++ b/Kernel/Devices/ZeroDevice.h @@ -26,7 +26,7 @@ private: virtual KResultOr<size_t> write(OpenFileDescription&, u64, const UserOrKernelBuffer&, size_t) override; virtual bool can_read(const OpenFileDescription&, size_t) const override; virtual bool can_write(const OpenFileDescription&, size_t) const override { return true; } - virtual StringView class_name() const override { return "ZeroDevice"; } + virtual StringView class_name() const override { return "ZeroDevice"sv; } }; } |