summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qcommandlineparser.cpp
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-06-06 01:28:12 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-06-06 13:29:34 +0200
commitc0f7ecab2084e3e720a012d1254f52bfbbe1446e (patch)
treed9f94b33019750f924458fde8a6a03a17eef7d52 /src/corelib/tools/qcommandlineparser.cpp
parentf133b226cdf4f2736b412bb642b45d43cb84f51d (diff)
QVariant: remove UB and fix semantics in a test
The code was reading from uninitialized memory when creating a variant. Fixing that reveals that the test semantics are broken: when dealing with datatypes without a registered operator==, QVariant resorts to memcmp, so the two objects would've actually compared equal. Amend that. Change-Id: I36bad7ee6a45154d5d534b7dd8b618cc0a900126 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/tools/qcommandlineparser.cpp')
0 files changed, 0 insertions, 0 deletions