Skip to content

Commit

Permalink
add ".d" named initialization for MetaObject::Data
Browse files Browse the repository at this point in the history
  • Loading branch information
felixf4xu committed Jan 16, 2024
1 parent a96d69e commit f95fed3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,8 @@ void Generator::generateCode()
//
// Finally create and initialize the static meta object
//
fprintf(out, "Q_CONSTINIT const QMetaObject %s::staticMetaObject = { {\n",
fprintf(out, "Q_CONSTINIT const QMetaObject %s::staticMetaObject = { \n"
" .d {\n",
cdef->qualified.constData());

if (isQObject)
Expand Down

0 comments on commit f95fed3

Please sign in to comment.