1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:47:34 +00:00

Kernel: Switch BIOSSysFSComponent constructor to AK::StringView

These are constants, they don't need to be dynamically allocated.
Another minor step towards removing `AK::String` from the Kernel
and improving OOM safety.
This commit is contained in:
Brian Gianforcaro 2021-10-31 22:28:03 -07:00 committed by Andreas Kling
parent 897471c852
commit 2c85f65519
2 changed files with 4 additions and 4 deletions

View file

@ -66,7 +66,7 @@ public:
protected:
virtual KResultOr<NonnullOwnPtr<KBuffer>> try_to_generate_buffer() const = 0;
explicit BIOSSysFSComponent(String name);
explicit BIOSSysFSComponent(StringView name);
};
class DMIEntryPointExposedBlob : public BIOSSysFSComponent {