From f231d325eee7febc84184c628155f16ca9a5dcf5 Mon Sep 17 00:00:00 2001 From: Integral Date: Thu, 31 Oct 2024 01:28:42 +0800 Subject: [PATCH] Define g_efiUuid as inline constexpr --- qefientrystaticlist.cpp | 4 +++- qefientrystaticlist.h | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/qefientrystaticlist.cpp b/qefientrystaticlist.cpp index 7dca47e..66087aa 100644 --- a/qefientrystaticlist.cpp +++ b/qefientrystaticlist.cpp @@ -13,7 +13,9 @@ #define dec Qt::dec #endif -QUuid g_efiUuid=QUuid("8be4df61-93ca-11d2-aa0d-00e098032b8c"); +// Defined in UEFI Spec as "EFI_GLOBAL_VARIABLE" +constexpr QUuid g_efiUuid = QUuid(0x8be4df61, 0x93ca, 0x11d2, 0xaa, 0x0d, 0x00, + 0xe0, 0x98, 0x03, 0x2b, 0x8c); QEFIEntryStaticList::QEFIEntryStaticList() { diff --git a/qefientrystaticlist.h b/qefientrystaticlist.h index cf21689..5a8b363 100644 --- a/qefientrystaticlist.h +++ b/qefientrystaticlist.h @@ -7,9 +7,6 @@ #include -extern QUuid g_efiUuid; - - class QEFIEntryStaticList { private: