diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-07-04 11:26:59 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-07-04 15:39:09 +0200 |
commit | ff561baabdf2f807ba4867e11f0dbed17ad4f8bf (patch) | |
tree | 3ba8b18ff87a41d165060750350c0be6a66964d5 /src/src.pro | |
parent | 656117100b52bb404828d02106fd0dee760b6019 (diff) |
Testlib: Reset the global benchmark data only if it matches
You can create multiple instances of QBenchmarkGlobalData as the ctor
is public.
The qmltest plugin does create a static one, but only conditionally
assigns it to the singleton pointer. On shutdown the plugin is removed
and the QBenchmarkGlobalData::current should only be reset by the dtor
if it's actually pointing to the same object.
Change-Id: I616c1ccf6f7a00abf1de342094da88481510bc7b
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/src.pro')
0 files changed, 0 insertions, 0 deletions