summaryrefslogtreecommitdiff
path: root/Kernel/Time
diff options
context:
space:
mode:
authorsin-ack <sin-ack@users.noreply.github.com>2022-07-11 20:18:40 +0000
committerAndreas Kling <kling@serenityos.org>2022-07-12 23:11:35 +0200
commitfbc771efe99ef6c24fa6657f28bcfec7300da61e (patch)
treecb9bb5cd1604982edc1062a342f915829f5da1f7 /Kernel/Time
parentc8585b77d263d15807231cb8bd1345d2591b9495 (diff)
downloadserenity-fbc771efe99ef6c24fa6657f28bcfec7300da61e.zip
Everywhere: Use default StringView constructor over nullptr
While null StringViews are just as bad, these prevent the removal of StringView(char const*) as that constructor accepts a nullptr. No functional changes.
Diffstat (limited to 'Kernel/Time')
-rw-r--r--Kernel/Time/HardwareTimer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Time/HardwareTimer.h b/Kernel/Time/HardwareTimer.h
index 96643e820b..ed1e0851ec 100644
--- a/Kernel/Time/HardwareTimer.h
+++ b/Kernel/Time/HardwareTimer.h
@@ -133,7 +133,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 StringView controller() const override { return nullptr; }
+ virtual StringView controller() const override { return {}; }
virtual bool eoi() override;
virtual u32 frequency() const override { return (u32)m_frequency; }