diff options
| author | Edward Welbourne <edward.welbourne@qt.io> | 2023-04-28 10:57:00 +0200 |
|---|---|---|
| committer | Edward Welbourne <edward.welbourne@qt.io> | 2023-05-04 14:06:08 +0200 |
| commit | 89febde32f3755a9b8bb830d1281be0e687efe2d (patch) | |
| tree | 0386e4c8868860f723712cd9684beeacfed13a1a /src/corelib/thread/qthreadpool.cpp | |
| parent | 7d7503948274e9cacdf3a7cea011ff8a5103bfa1 (diff) | |
tst_QDateTime: rework initialization of local-time-types
There's no need to check the year or day-of-month (which involve
calendrical calculations) when we can perfectly well just check the
Julian Day number that's implied by the day-number parameters to
setType(), which could just as well return the LocalTimeType to be
assigned to the relevant parameter instead of doing the setting
itself. With that rearrangement, making it into a private static
method, the members it's used to initialize can then be const and
initialized during construction.
Change-Id: Ib7d295c3fbb9b90652952627456cdfb6176b8119
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/thread/qthreadpool.cpp')
0 files changed, 0 insertions, 0 deletions
