diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2017-02-09 21:50:30 +0100 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2017-02-23 09:39:23 +0000 |
commit | 2c130701627ea5bc0df9af9c77edfa4d463b5dd1 (patch) | |
tree | e74c15e897b4a60a59fef8f041397f5361878863 /src/gui/text | |
parent | b56c8a3b3d93717c1229e77f6660140d890f936b (diff) |
Do not delete someone else's QSystemLocale when constructing another
The QSystemLocale constructor remembers the most-recently-constructed
instance - a dodgy enough proposition at the best of times - and
shares it with much of the rest of QLocale. There is a global static
instance, actually of a derived singleton class, to which it is
usually set on program start-up. However, the constructor deleted the
remembered instance before remembering any new instances; there was no
way this could not lead to bad consequences. So let's not do that.
Change-Id: Ie8f3d655c9d4f75f6ec00a5861d98d6020ecc633
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/text')
0 files changed, 0 insertions, 0 deletions