summaryrefslogtreecommitdiff
path: root/Kernel/Firmware/ACPI/Parser.h
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2021-10-02 15:30:23 -0700
committerAndreas Kling <kling@serenityos.org>2021-10-03 13:36:10 +0200
commit3a945051fc70b772558496c2a02d1f09320cb134 (patch)
tree768767c5366b6130c241e4f9ad1ec7971e068655 /Kernel/Firmware/ACPI/Parser.h
parent5f1c98e5764c00b4601c959013291c8804e35618 (diff)
downloadserenity-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/Firmware/ACPI/Parser.h')
-rw-r--r--Kernel/Firmware/ACPI/Parser.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Firmware/ACPI/Parser.h b/Kernel/Firmware/ACPI/Parser.h
index 6fe75ad869..9c11b2100b 100644
--- a/Kernel/Firmware/ACPI/Parser.h
+++ b/Kernel/Firmware/ACPI/Parser.h
@@ -48,7 +48,7 @@ public:
static void must_initialize(PhysicalAddress rsdp, PhysicalAddress fadt, u8 irq_number);
- virtual StringView purpose() const override { return "ACPI Parser"; }
+ virtual StringView purpose() const override { return "ACPI Parser"sv; }
virtual bool handle_irq(const RegisterState&) override;
Optional<PhysicalAddress> find_table(const StringView& signature);