diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2020-05-06 11:17:24 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2020-05-07 15:28:12 +0200 |
commit | 9a66dff369c94ff90364c106fd898b0136b451e5 (patch) | |
tree | c523d9ecef2c85185e56321cd1f444a1c385e7c1 /src/widgets/graphicsview | |
parent | a245945f29621ce9011f4c82f23076d2a28b5aa9 (diff) |
QLocale/Mac: make envVarLocale() thread-safe
The old code used a static QByteArray, but would write to it on every
invocation of the function. This makes the function non-re-entrant,
even though it's callable from non-GUI-threads (via
QSystemLocale::fallbackUiLocale()).
Fix by using an automatic QByteArray instead.
Change-Id: I93eea1dff1c72f3ea280283bb68b4ed47d2a8e1d
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/widgets/graphicsview')
0 files changed, 0 insertions, 0 deletions