diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2021-10-14 10:08:58 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2021-10-18 08:53:27 +0000 |
commit | e652fa4d3e0f444f7a42d6a00cc39cf3ab79a6ec (patch) | |
tree | f92ea056fccf2bb9bc1ba975679e1c07eda49fc7 /src/gui/text/qtextlayout.cpp | |
parent | 8c2969ea86c4b38cbece5c1c2295e44dd5aa4f71 (diff) |
Q_GLOBAL_STATIC: suppress warning about expressions in noexcept()
We use a simple statement to try and mark the holder as noexcept and that
works for most cases (but not all). It triggers a warning when the
expression is complex, though, like this in qlocale.cpp:
Q_GLOBAL_STATIC_WITH_ARGS(QSharedDataPointer<QLocalePrivate>, defaultLocalePrivate,
(new QLocalePrivate(defaultData(), defaultIndex())))
Pick-to: 6.2
Change-Id: Iea05060bc2c046928536fffd16adf4be6126d039
Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/gui/text/qtextlayout.cpp')
0 files changed, 0 insertions, 0 deletions