1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:27:35 +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

@ -17,8 +17,8 @@ namespace Kernel {
class VirtIORNG final : public CharacterDevice
, public VirtIODevice {
public:
virtual const char* purpose() const override { return class_name(); }
virtual const char* class_name() const override { return m_class_name.characters(); }
virtual StringView purpose() const override { return class_name(); }
virtual StringView class_name() const override { return m_class_name; }
virtual bool can_read(const FileDescription&, size_t) const override { return false; }
virtual KResultOr<size_t> read(FileDescription&, u64, UserOrKernelBuffer&, size_t) override { return 0; }