summaryrefslogtreecommitdiffstats
path: root/src/sql/doc/snippets/code
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2024-08-27 17:31:04 +0200
committerMarc Mutz <marc.mutz@qt.io>2024-08-28 17:01:40 +0000
commitc745b59e36b421039e71779fd9e5db8c619163f2 (patch)
treeae38cfa1fa02197fce2b0a430c3299f6567abc02 /src/sql/doc/snippets/code
parent7fb3a18282281023bd8e47e9dae79dbab3660848 (diff)
QLocale: mark c_locale Q_CONSTINIT and c_private() noexcept
Add Q_CONSTINIT to the c_locale variable to statically assert that it cannot fail (no runtime initialization = no failure). The QLocalePrivate ctor is already constexpr, so Q_CONSTINIT works out of the box here. Because c_locale construction is now known not to fail, c_private() cannot fail, either, and can and should be noexcept. Pick-to: 6.8 Change-Id: Ibe94cb4bcd990fbd0b440dd98509eb39447a94b7 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/sql/doc/snippets/code')
0 files changed, 0 insertions, 0 deletions