qt5base-lts/tests/auto/corelib/text/qstringbuilder
Lars Knoll 95e84c0ea9 Allow qMin, qMax and qBound for types that can be losslessly converted
Add overloads for qMin and friends where the arguments are of different
type, but one can be easily promoted to the other. Return the promoted
type. Promotions are only allowed if both types are either signed,
unsigned or floating point numbers.

This should simplify writing code in many case (as for example
qMin(myint64, 1)) and also help reduce source incompatibilities between
Qt 5 and Qt 6, where the return types for sizes of our containers changes
from int to qsizetype.

Change-Id: Ia6bcf16bef0469ea568063e7c32f532da610d1cd
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2020-06-25 06:20:18 +02:00
..
qstringbuilder1 Allow qMin, qMax and qBound for types that can be losslessly converted 2020-06-25 06:20:18 +02:00
qstringbuilder2 Allow qMin, qMax and qBound for types that can be losslessly converted 2020-06-25 06:20:18 +02:00
qstringbuilder3 Allow qMin, qMax and qBound for types that can be losslessly converted 2020-06-25 06:20:18 +02:00
qstringbuilder4 Allow qMin, qMax and qBound for types that can be losslessly converted 2020-06-25 06:20:18 +02:00
CMakeLists.txt Port qtbase/tests/auto/corelib/text tests to CMake 2020-04-27 14:34:51 +02:00
qstringbuilder.pro Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00