summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2019-12-03 15:48:21 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2020-01-14 10:47:05 +0100
commit7b3d0abfa25676c34808e714d4f0cccc6b6bb885 (patch)
tree676fb0726647fafd1821e50255215147414d2e0e /tests
parent01d24eea09e1312e9fa7eee98e98ce22ed504aba (diff)
Do fewer calendrical calculations in QDateTimeParser::setDigit()
It was calling a QDate's year(), month() and day() methods, each of which repeats most of the same calendrical calculations; and the same results can be obtained from the calendar's partsFromDate() all in one go. This also reduces the number of local variables needed. Change-Id: I8f84e66a5f677f55cb2113c56ebbdf7c2517e828 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions