1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:37:44 +00:00

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
parent fa9111ac46
commit c9f6786e8b
58 changed files with 72 additions and 72 deletions

View file

@ -32,7 +32,7 @@ public:
virtual KResultOr<size_t> write(FileDescription&, u64, const UserOrKernelBuffer&, size_t) override;
virtual bool can_write(const FileDescription&, size_t) const override { return true; }
virtual const char* purpose() const override { return class_name(); }
virtual StringView purpose() const override { return class_name(); }
// ^Device
virtual mode_t required_mode() const override { return 0220; }
@ -43,7 +43,7 @@ private:
virtual bool handle_irq(const RegisterState&) override;
// ^CharacterDevice
virtual const char* class_name() const override { return "SB16"; }
virtual StringView class_name() const override { return "SB16"; }
void initialize();
void wait_for_irq();