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:
parent
7763b397e3
commit
00ee664f2f
@ -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" },
|
||||
|
@ -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 = """};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user