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:
parent
897471c852
commit
2c85f65519
2 changed files with 4 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue