From 936e97b066a1de381180fa8bd75cdce8ae66ea32 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Tue, 7 Nov 2023 19:19:45 -0500 Subject: [PATCH] LibEDID: Format PNP ID data a little more cleanly Namely, do not append unnecessary new lines between PNP ID entries. This just makes the generated code a bit easier to look through. --- .../Tools/CodeGenerators/LibEDID/GeneratePnpIDs.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Meta/Lagom/Tools/CodeGenerators/LibEDID/GeneratePnpIDs.cpp b/Meta/Lagom/Tools/CodeGenerators/LibEDID/GeneratePnpIDs.cpp index b6bf779d76..f6be75fa6d 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibEDID/GeneratePnpIDs.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibEDID/GeneratePnpIDs.cpp @@ -197,9 +197,9 @@ namespace PnpIDs { StringView manufacturer_id; StringView manufacturer_name; struct { - u16 year{}; - u8 month{}; - u8 day{}; + u16 year { 0 }; + u8 month { 0 }; + u8 day { 0 }; } approval_date; }; @@ -223,8 +223,7 @@ static ErrorOr generate_source(Core::File& file, HashMap