mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:47:35 +00:00
Kernel: Use operator ""sv
in all purpose() implementations
Previously there was a mix of returning plain strings and returning explicit string views using `operator ""sv`. This change switches them all to standardized on `operator ""sv` as it avoids a call to strlen.
This commit is contained in:
parent
5f1c98e576
commit
3a945051fc
10 changed files with 11 additions and 11 deletions
|
@ -36,7 +36,7 @@ public:
|
|||
virtual ~AHCIPortHandler() override;
|
||||
|
||||
RefPtr<StorageDevice> device_at_port(size_t port_index) const;
|
||||
virtual StringView purpose() const override { return "SATA Port Handler"; }
|
||||
virtual StringView purpose() const override { return "SATA Port Handler"sv; }
|
||||
|
||||
AHCI::HBADefinedCapabilities hba_capabilities() const;
|
||||
NonnullRefPtr<AHCIController> hba_controller() const { return m_parent_controller; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue