summaryrefslogtreecommitdiff
path: root/qmake
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2022-08-08 18:27:01 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2022-08-19 14:29:22 +0200
commitb9baa42b62b7ae34dabd54592cb12be6e2b18b35 (patch)
tree59bbb2f8db86e45709de4534bf50a97ac455df9a /qmake
parentacb2faf1fea2a1d2f6090443d62ac0645f307611 (diff)
downloadqtbase-b9baa42b62b7ae34dabd54592cb12be6e2b18b35.tar.gz
Break out overflow-calculations into semantically-named inlines
Adding days to seconds or millis, or seconds to millis, involves scaling one and adding the other, so has to check for overflow. The std::integral_constant boilerplate and the complications of calling mul_overflow() and add_overflow() rather hid what was going on, so package them in inlines so that their calls are more intelligible. Change-Id: I1e90de8fcb81eb84920868c7e4bd217ee353fc54 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'qmake')
0 files changed, 0 insertions, 0 deletions