summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibEDID/EDID.h
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2022-02-15 23:05:51 +0200
committerAndreas Kling <kling@serenityos.org>2022-02-16 22:21:37 +0100
commit13f5d1c03739e3cf8f6fede91835b32f60375e2b (patch)
tree77dfeef936758d6253804c957b4d43886d1c7c6c /Userland/Libraries/LibEDID/EDID.h
parent4a15ed616472e6badca8cfe8f30fb5e38a0391b6 (diff)
downloadserenity-13f5d1c03739e3cf8f6fede91835b32f60375e2b.zip
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.
Diffstat (limited to 'Userland/Libraries/LibEDID/EDID.h')
-rw-r--r--Userland/Libraries/LibEDID/EDID.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibEDID/EDID.h b/Userland/Libraries/LibEDID/EDID.h
index 9cf0ae02b2..b3f15696c4 100644
--- a/Userland/Libraries/LibEDID/EDID.h
+++ b/Userland/Libraries/LibEDID/EDID.h
@@ -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] {};
};
}