mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 11:28:11 +00:00
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.
This commit is contained in:
parent
836c22ea13
commit
5f1c98e576
39 changed files with 39 additions and 39 deletions
|
@ -35,7 +35,7 @@ private:
|
|||
virtual bool can_read(const OpenFileDescription&, size_t) const override;
|
||||
virtual KResultOr<size_t> read(OpenFileDescription&, u64, UserOrKernelBuffer&, size_t) override;
|
||||
virtual bool can_write(const OpenFileDescription&, size_t) const override;
|
||||
virtual StringView class_name() const override { return "SlavePTY"; }
|
||||
virtual StringView class_name() const override { return "SlavePTY"sv; }
|
||||
virtual KResult close() override;
|
||||
|
||||
friend class MasterPTY;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue