1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 21:08:12 +00:00

Kernel: Make various T::class_name() and similar return StringView

Instead of returning char const*, we can also give you a StringView.
This commit is contained in:
Andreas Kling 2021-07-11 01:46:09 +02:00
parent fa9111ac46
commit c9f6786e8b
58 changed files with 72 additions and 72 deletions

View file

@ -21,7 +21,7 @@ public:
private:
explicit UDPSocket(int protocol);
virtual const char* class_name() const override { return "UDPSocket"; }
virtual StringView class_name() const override { return "UDPSocket"; }
static Lockable<HashMap<u16, UDPSocket*>>& sockets_by_port();
virtual KResultOr<size_t> protocol_receive(ReadonlyBytes raw_ipv4_packet, UserOrKernelBuffer& buffer, size_t buffer_size, int flags) override;