summaryrefslogtreecommitdiff
path: root/Kernel/Net/RTL8168NetworkAdapter.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-07-11 01:46:09 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-11 01:46:59 +0200
commitc9f6786e8b726dfe3d8d4ee13e34be561c093fe5 (patch)
tree0252a8e9b9bae62762c466e33e3b1e462fe54e43 /Kernel/Net/RTL8168NetworkAdapter.h
parentfa9111ac463d645bb801140b1e121d2f00c0efa1 (diff)
downloadserenity-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/Net/RTL8168NetworkAdapter.h')
-rw-r--r--Kernel/Net/RTL8168NetworkAdapter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Net/RTL8168NetworkAdapter.h b/Kernel/Net/RTL8168NetworkAdapter.h
index 180279c3d3..079fad897c 100644
--- a/Kernel/Net/RTL8168NetworkAdapter.h
+++ b/Kernel/Net/RTL8168NetworkAdapter.h
@@ -27,7 +27,7 @@ public:
virtual void send_raw(ReadonlyBytes) override;
virtual bool link_up() override { return m_link_up; }
- virtual const char* purpose() const override { return class_name(); }
+ virtual StringView purpose() const override { return class_name(); }
private:
// FIXME: should this be increased? (maximum allowed here is 1024) - memory usage vs packet loss chance tradeoff