QStringConverter: add Q_CONSTINIT to function-level QBasicAtomic
Task-number: QTBUG-100486 Pick-to: 6.4 Change-Id: Ia55b743fd7ad4716b82425410ed0cf9ff2ee30e8 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
496b4294c9
commit
bd9c704823
@ -306,6 +306,7 @@ struct Q_CORE_EXPORT QLocal8Bit
|
||||
static int checkUtf8();
|
||||
static bool isUtf8()
|
||||
{
|
||||
Q_CONSTINIT
|
||||
static QBasicAtomicInteger<qint8> result = { 0 };
|
||||
int r = result.loadRelaxed();
|
||||
if (r == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user