Edid vendor table generator (2/N): use idiomatic C++

In C++ we can give names to classes, so just use that, without
C-isms (typedef struct).

Change-Id: I27239d8d5c28864b3f4f7bd4013cc47c045b4b04
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
Giuseppe D'Angelo 2021-04-20 10:44:48 +02:00
parent 7763b397e3
commit 00ee664f2f
2 changed files with 5 additions and 5 deletions

View File

@ -60,10 +60,10 @@
QT_BEGIN_NAMESPACE
typedef struct VendorTable {
struct VendorTable {
const char id[4];
const char name[78];
} VendorTable;
};
static const struct VendorTable q_edidVendorTable[] = {
{ "AAA", "Avolites Ltd" },

View File

@ -98,12 +98,12 @@ header = """
QT_BEGIN_NAMESPACE
typedef struct VendorTable {
struct VendorTable {
const char id[4];
const char name[%d];
} VendorTable;
};
static const struct VendorTable q_edidVendorTable[] = {"""
static const VendorTable q_edidVendorTable[] = {"""
footer = """};