diff options
author | Andreas Kling <kling@serenityos.org> | 2021-07-11 01:46:09 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-11 01:46:59 +0200 |
commit | c9f6786e8b726dfe3d8d4ee13e34be561c093fe5 (patch) | |
tree | 0252a8e9b9bae62762c466e33e3b1e462fe54e43 /Kernel/Time | |
parent | fa9111ac463d645bb801140b1e121d2f00c0efa1 (diff) | |
download | serenity-c9f6786e8b726dfe3d8d4ee13e34be561c093fe5.zip |
Kernel: Make various T::class_name() and similar return StringView
Instead of returning char const*, we can also give you a StringView.
Diffstat (limited to 'Kernel/Time')
-rw-r--r-- | Kernel/Time/HardwareTimer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Time/HardwareTimer.h b/Kernel/Time/HardwareTimer.h index 76adb108f6..5abe78c0c4 100644 --- a/Kernel/Time/HardwareTimer.h +++ b/Kernel/Time/HardwareTimer.h @@ -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; } |