summaryrefslogtreecommitdiffstats
path: root/src/widgets/util/qundostack.cpp
diff options
context:
space:
mode:
authorEdward Welbourne <[email protected]>2016-12-15 09:47:19 +0100
committerEdward Welbourne <[email protected]>2017-01-02 13:13:57 +0000
commitafda26ce5d0534d85219a2fe858aa0e05037cf09 (patch)
treec48e80fbdd017a489f52fc1452f4cbf7c4d39e5b /src/widgets/util/qundostack.cpp
parent79bf4e8f1c4415d92ab335c5a72b9e4c9332fdd3 (diff)
QDateTime test: clarify overflow-check
An overflow-check needed the datum for the "min" test to be minus the datum for the "max" test; so explicitly make the former use -max() instead of synthesising it as min()+1. This simplifies the explanation of why that's needed, too. Clarify the overflow-check's comment at the same time. Change-Id: I41f56764fdf5e8c749bfae7a685e5fb77d37b3a8 Reviewed-by: Thiago Macieira <[email protected]>
Diffstat (limited to 'src/widgets/util/qundostack.cpp')
0 files changed, 0 insertions, 0 deletions