mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +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
Notes:
sideshowbarker
2024-07-18 01:37:26 +09:00
Author: https://github.com/bgianfo
Commit: 2c85f65519
Pull-request: https://github.com/SerenityOS/serenity/pull/10747
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