1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:58:11 +00:00

Kernel: Make Thread::state_string() return StringView

This commit is contained in:
Andreas Kling 2021-08-05 20:48:14 +02:00
parent af46f2214c
commit 32a150f2b4
4 changed files with 23 additions and 23 deletions

View file

@ -21,7 +21,7 @@ class ARPTableBlocker : public Thread::Blocker {
public:
ARPTableBlocker(IPv4Address ip_addr, Optional<MACAddress>& addr);
virtual const char* state_string() const override { return "Routing (ARP)"; }
virtual StringView state_string() const override { return "Routing (ARP)"sv; }
virtual Type blocker_type() const override { return Type::Routing; }
virtual bool should_block() override { return m_should_block; }