Kernel: Make various T::class_name() and similar return StringView

Instead of returning char const*, we can also give you a StringView.
This commit is contained in:
Andreas Kling 2021-07-11 01:46:09 +02:00
commit c9f6786e8b
Notes: sideshowbarker 2024-07-18 09:21:12 +09:00
58 changed files with 72 additions and 72 deletions

View file

@ -34,7 +34,7 @@ private:
virtual bool can_read(const FileDescription&, size_t) const override;
virtual KResultOr<size_t> read(FileDescription&, u64, UserOrKernelBuffer&, size_t) override;
virtual bool can_write(const FileDescription&, size_t) const override;
virtual const char* class_name() const override { return "SlavePTY"; }
virtual StringView class_name() const override { return "SlavePTY"; }
virtual KResult close() override;
// ^Device