mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:57:35 +00:00
LibEDID: Store manufacturer id instead of allocating on each call
This also let's us use a KString instead of a string when we're in the Kernel, which opens the path for OOM-failure propagation.
This commit is contained in:
parent
4a15ed6164
commit
13f5d1c037
2 changed files with 10 additions and 10 deletions
|
@ -88,7 +88,7 @@ public:
|
|||
static ErrorOr<Parser> from_framebuffer_device(String const&, size_t);
|
||||
#endif
|
||||
|
||||
String legacy_manufacturer_id() const;
|
||||
StringView legacy_manufacturer_id() const;
|
||||
#ifndef KERNEL
|
||||
String manufacturer_name() const;
|
||||
#endif
|
||||
|
@ -453,6 +453,7 @@ private:
|
|||
#else
|
||||
String m_version;
|
||||
#endif
|
||||
char m_legacy_manufacturer_id[4] {};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue