diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-10-02 15:30:23 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-03 13:36:10 +0200 |
commit | 3a945051fc70b772558496c2a02d1f09320cb134 (patch) | |
tree | 768767c5366b6130c241e4f9ad1ec7971e068655 /Kernel/Interrupts/APIC.cpp | |
parent | 5f1c98e5764c00b4601c959013291c8804e35618 (diff) | |
download | serenity-3a945051fc70b772558496c2a02d1f09320cb134.zip |
Kernel: Use `operator ""sv` in all purpose() 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/Interrupts/APIC.cpp')
-rw-r--r-- | Kernel/Interrupts/APIC.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Interrupts/APIC.cpp b/Kernel/Interrupts/APIC.cpp index 60e64a673a..960fa6cf2b 100644 --- a/Kernel/Interrupts/APIC.cpp +++ b/Kernel/Interrupts/APIC.cpp @@ -79,7 +79,7 @@ public: virtual bool eoi() override; virtual HandlerType type() const override { return HandlerType::IRQHandler; } - virtual StringView purpose() const override { return "IPI Handler"; } + virtual StringView purpose() const override { return "IPI Handler"sv; } virtual StringView controller() const override { return nullptr; } virtual size_t sharing_devices_count() const override { return 0; } @@ -110,7 +110,7 @@ public: virtual bool eoi() override; virtual HandlerType type() const override { return HandlerType::IRQHandler; } - virtual StringView purpose() const override { return "SMP Error Handler"; } + virtual StringView purpose() const override { return "SMP Error Handler"sv; } virtual StringView controller() const override { return nullptr; } virtual size_t sharing_devices_count() const override { return 0; } |