qt5base-lts/tests/auto/corelib/time
Edward Welbourne 89febde32f 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>
2023-05-04 14:06:08 +02:00
..
qcalendar Refactor QGregorianCalendar::julianFromParts to return std::optional 2023-05-04 14:06:07 +02:00
qdate Move some repeated constants from tests into tst_QDate 2023-05-02 17:03:27 +02:00
qdatetime tst_QDateTime: rework initialization of local-time-types 2023-05-04 14:06:08 +02:00
qdatetimeparser tst_QDateTimeParser::intermediateYear(): adapt for Indian/Cocos zone 2023-04-14 15:21:39 +02:00
qtime tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00
qtimezone Change QTimeZone's offset range into constants, not an enum 2023-04-28 16:13:25 +02:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00