diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2021-12-06 08:11:00 -0800 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2021-12-17 07:56:24 +0000 |
commit | 4631b61c813ed9c095db638f25c21916cd2928e4 (patch) | |
tree | 1be76cb21339455228e76431cedc388693e194ca /examples | |
parent | 48b4f144e7f690f5ae840124eaad4eaa67a02681 (diff) |
Q_{APPLICATION,GLOBAL}_STATIC: use variadic macros
We can't remove Q_GLOBAL_STATIC_WITH_ARGS, for compatibility reasons.
It's also the only way to pass uniform initialization (i.e., initialize
the value as value{with_braces}), though I don't think this is used
almost anywhere due to the fact that you couldn't pass more than one
argument. But Q_APPLICATION_STATIC is new in 6.3, so we have time to
change it.
[ChangeLog][QtCore][QGlobalStatic] The Q_GLOBAL_STATIC macro is now
variadic. Any extra arguments are used as constructor arguments,
obliterating the need to use Q_GLOBAL_STATIC_WITH_ARGS().
Pick-to: 6.3
Change-Id: Ib42b3adc93bf4d43bd55fffd16be3656a512fe53
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions