diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2018-06-13 19:12:15 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2020-10-09 01:11:20 +0200 |
commit | 92f0f99c23f981a551fde0d0242d414fac4dacbd (patch) | |
tree | 1ee66f4574837a813e83218c96bff93814fdab21 /cmake | |
parent | 2a6f2fe9ef9a5d0755443ba94183d97b2fac1a28 (diff) |
Check validity before adding to a QDateTime
QDateTime's addDays(), addMonths() and addYears() neglected to check
for validity before doing their job, with the result that they could
produce "valid" (but wildly inappropriate) results if used on an
invalid date-time. Added tests for this case (and the boundary).
Change-Id: I7b0d638501cb5d875a678cde213547a83ed7529e
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'cmake')
0 files changed, 0 insertions, 0 deletions