summaryrefslogtreecommitdiff
path: root/Kernel/Time
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/Time
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/Time')
-rw-r--r--Kernel/Time/HardwareTimer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Time/HardwareTimer.h b/Kernel/Time/HardwareTimer.h
index 3d7a5f3dd1..21c1ca9a89 100644
--- a/Kernel/Time/HardwareTimer.h
+++ b/Kernel/Time/HardwareTimer.h
@@ -70,7 +70,7 @@ public:
virtual StringView purpose() const override
{
if (TimeManagement::the().is_system_timer(*this))
- return "System Timer";
+ return "System Timer"sv;
return model();
}