qt5base-lts/src
Edward Welbourne 410b5bc238 Add MINS_PER_HOUR constant and avoid a Coverity overflow warning
Being able to distinguish which 60 is minutes-per-hour and which is
seconds-per-minute has some value in its own right, and doing it with
qint64 values (as usual for DateTimeConstants) takes care of two
Coverity warnings about multiplying before widening.

Use the new constant, and SECS_PER_MIN, in a few other places where
the result isn't an int (we don't want to provoke narrowing warnings).

Change-Id: Iadcb6956ac22a53029bf7b7518369520d2b1fd8b
Coverity-Id: CID 393112
Coverity-Id: CID 393113
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2022-06-03 06:35:20 +02:00
..
3rdparty Update qt_attribution for harfbuzz 2022-05-24 15:05:44 +02:00
android Add option to not include native libraries in APK 2022-05-20 08:08:02 +03:00
concurrent QtConcurrent: prevent conversion of ReduceOption to initial value 2022-05-20 17:11:15 +02:00
corelib Add MINS_PER_HOUR constant and avoid a Coverity overflow warning 2022-06-03 06:35:20 +02:00
dbus Remove more unused qreadwritelock.h includes 2022-05-17 18:49:31 +02:00
entrypoint Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
gui QBrush: port from array of char[24] to qOffsetStringArray() 2022-06-02 15:14:00 +02:00
network wasm: add support for blocking sockets 2022-06-02 23:54:46 +02:00
opengl Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
openglwidgets QOpenGLWidget: Fix a typo in the public documentation 2022-05-27 22:47:28 +01:00
platformsupport Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
plugins Expose the qtloader object globally 2022-06-03 05:30:46 +02:00
printsupport Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
sql Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
testlib QtTest: move the disabling of core dumps from load-time to qInit() 2022-06-01 22:12:17 -07:00
tools uic: Fix string list properties for Python 2022-05-26 00:11:40 +02:00
widgets Avoid menu separators disappearing under fractional dpr scaling 2022-05-31 22:30:22 +02:00
xml Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
CMakeLists.txt Make it possible to disable the PrintSupport module 2021-02-09 09:17:21 +01:00