diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-09-28 00:12:36 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-11-22 05:38:45 +0000 |
commit | 4bf5a3c885c26150317e83555c0c3213bd7b417e (patch) | |
tree | 7345c506d72478b86394ba583f7c3bae6b6475e4 /dist/changes-0.98 | |
parent | ad788c1014ea7a84f4ad9c52f50b957074cb3e38 (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 'dist/changes-0.98')
0 files changed, 0 insertions, 0 deletions