diff options
| author | Sona Kurazyan <[email protected]> | 2022-08-31 16:08:30 +0200 |
|---|---|---|
| committer | Sona Kurazyan <[email protected]> | 2022-09-01 19:44:19 +0200 |
| commit | 711105058afe68407a0ed613335a83b6181112ed (patch) | |
| tree | 82f549dafc18558cf0801e67b1ebfd18c8d73f8d /src/opengl/qopengltextureglyphcache.cpp | |
| parent | 44a1782a9bb6b2db8847ab332682b3af386e67ae (diff) | |
Apply Q_CONSTINIT where beneficial
Applied Q_CONSTINIT to variables with static storage duration, but
skipped the POD types with core constant initializers.
Task-number: QTBUG-100486
Change-Id: Iaabf824e9cb0f29a405a149912200d4e4b3573c1
Reviewed-by: Thiago Macieira <[email protected]>
Reviewed-by: MÃ¥rten Nordheim <[email protected]>
Diffstat (limited to 'src/opengl/qopengltextureglyphcache.cpp')
| -rw-r--r-- | src/opengl/qopengltextureglyphcache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qopengltextureglyphcache.cpp b/src/opengl/qopengltextureglyphcache.cpp index 39f39c554dd..b11f4d3b1b8 100644 --- a/src/opengl/qopengltextureglyphcache.cpp +++ b/src/opengl/qopengltextureglyphcache.cpp @@ -13,7 +13,7 @@ QT_BEGIN_NAMESPACE static int next_qopengltextureglyphcache_serial_number() { - static QBasicAtomicInt serial = Q_BASIC_ATOMIC_INITIALIZER(0); + Q_CONSTINIT static QBasicAtomicInt serial = Q_BASIC_ATOMIC_INITIALIZER(0); return 1 + serial.fetchAndAddRelaxed(1); } |
