summaryrefslogtreecommitdiffstats
path: root/configure.bat
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-09-28 00:12:36 +0200
committerMarc Mutz <marc.mutz@kdab.com>2016-11-22 05:38:45 +0000
commit4bf5a3c885c26150317e83555c0c3213bd7b417e (patch)
tree7345c506d72478b86394ba583f7c3bae6b6475e4 /configure.bat
parentad788c1014ea7a84f4ad9c52f50b957074cb3e38 (diff)
tst_QFormLayout: Fix UB (invalid enum value) in several functions
The code coerced a -123 into a QFormLayout::ItemFlags, which, however, being an enum with enumeration values 0..2, only has valid numerical values 0..3. Fix by using 3 as the value to represent the invalid enum value, and store this in a constant so as not to distribute this magic number all around the test class. Change-Id: Ie5e93a69ef5a3acdde43030b022e0cce8aec484d Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'configure.bat')
0 files changed, 0 insertions, 0 deletions