summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qsharedpointer.cpp
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2018-11-16 14:29:42 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2018-11-23 10:04:46 +0000
commit108c9015b960fccd79efc6de4459dbf05f6ced54 (patch)
tree9be7d754c03706665b6be503d7ecbf57504bfdc0 /src/corelib/tools/qsharedpointer.cpp
parent6dcc13d4024ed5fd56610c44140aed72e0248a8e (diff)
Implement transient locale as instantiating a class
A couple of QLocale tests were using setlocale twice to provide a transient locale tweak in tests; however, if the test in between fails, that can leave the program running in the "transient" locale after. So implement a proper class whose destructor ensures the transient is tidied away. Also change the locale in use by one of these transient changes: it purported to be checking things didn't depend on locale, but was using the same local as most of the test-cases for its test. Change-Id: I0d954edcc96019a8c2eb12b7a7c568e8b87a41d5 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/corelib/tools/qsharedpointer.cpp')
0 files changed, 0 insertions, 0 deletions