summaryrefslogtreecommitdiff
path: root/Kernel/TTY/MasterPTY.h
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2021-10-02 15:24:00 -0700
committerAndreas Kling <kling@serenityos.org>2021-10-03 13:36:10 +0200
commit5f1c98e5764c00b4601c959013291c8804e35618 (patch)
treecf0ffd7806a9f5e779db322758d6e2495e55a534 /Kernel/TTY/MasterPTY.h
parent836c22ea1370703279791a864645ab2c6aad2dac (diff)
downloadserenity-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/TTY/MasterPTY.h')
-rw-r--r--Kernel/TTY/MasterPTY.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/TTY/MasterPTY.h b/Kernel/TTY/MasterPTY.h
index 20d87af7ba..7f6c5732c7 100644
--- a/Kernel/TTY/MasterPTY.h
+++ b/Kernel/TTY/MasterPTY.h
@@ -38,7 +38,7 @@ private:
virtual KResult close() override;
virtual bool is_master_pty() const override { return true; }
virtual KResult ioctl(OpenFileDescription&, unsigned request, Userspace<void*> arg) override;
- virtual StringView class_name() const override { return "MasterPTY"; }
+ virtual StringView class_name() const override { return "MasterPTY"sv; }
RefPtr<SlavePTY> m_slave;
unsigned m_index;