summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2021-04-20 10:44:48 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2021-04-21 15:28:54 +0200
commit00ee664f2fedf6ece52a7df45c22fca7fedfbe93 (patch)
treee69ad7932aa6211a5f049f833d6b0661cb55a5db /util
parent7763b397e3b648a1021a645bd4902923cf30b323 (diff)
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>
Diffstat (limited to 'util')
-rwxr-xr-xutil/edid/qedidvendortable.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/edid/qedidvendortable.py b/util/edid/qedidvendortable.py
index 39f60c0e90..3d67666238 100755
--- a/util/edid/qedidvendortable.py
+++ b/util/edid/qedidvendortable.py
@@ -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 = """};