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/Net/LocalSocket.h | |
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/Net/LocalSocket.h')
-rw-r--r-- | Kernel/Net/LocalSocket.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Net/LocalSocket.h b/Kernel/Net/LocalSocket.h index f86707cc23..818608d8a5 100644 --- a/Kernel/Net/LocalSocket.h +++ b/Kernel/Net/LocalSocket.h @@ -52,7 +52,7 @@ public: private: explicit LocalSocket(int type); - virtual const char* class_name() const override { return "LocalSocket"; } + virtual StringView class_name() const override { return "LocalSocket"; } virtual bool is_local() const override { return true; } bool has_attached_peer(const FileDescription&) const; DoubleBuffer* receive_buffer_for(FileDescription&); |