summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/tools/qset/tst_qset.cpp
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2022-08-25 14:07:25 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2022-08-26 14:15:24 +0200
commit981b3336f6ed7aed92e9b9d0fd50824340be5d61 (patch)
tree632658ae6850010357e0ff2675cb4b60a24ca666 /tests/auto/corelib/tools/qset/tst_qset.cpp
parenta6d6d919faeb395449846bde41d4ad799c30da99 (diff)
Simplify one of the gap cases in QTimeZonePrivate::dataForLocalTime()
The code computed the transition gap and subtracted it from one side's proposed UTC time, or added it to the other's; the effect was the same as swapping these two values. Doing that overtly as a swap simplifies the remainder of the code. Clarified the accompanying comment in the process. Change-Id: I00b8d2bb98ea08b6edd11e01d05a091cb39f3511 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/tools/qset/tst_qset.cpp')
0 files changed, 0 insertions, 0 deletions