1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:37:46 +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

@ -67,7 +67,7 @@ public:
IRQHandler::will_be_destroyed();
}
virtual const char* purpose() const override
virtual StringView purpose() const override
{
if (TimeManagement::the().is_system_timer(*this))
return "System Timer";
@ -118,7 +118,7 @@ public:
GenericInterruptHandler::will_be_destroyed();
}
virtual const char* purpose() const override
virtual StringView purpose() const override
{
return model();
}
@ -134,7 +134,7 @@ public:
virtual bool is_shared_handler() const override { return false; }
virtual bool is_sharing_with_others() const override { return false; }
virtual HandlerType type() const override { return HandlerType::IRQHandler; }
virtual const char* controller() const override { return nullptr; }
virtual StringView controller() const override { return nullptr; }
virtual bool eoi() override;
virtual u32 frequency() const override { return (u32)m_frequency; }