summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/global/qwinregistry
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2022-06-20 11:07:21 +0200
committerMårten Nordheim <marten.nordheim@qt.io>2022-06-20 19:52:01 +0000
commit3d73aa660b5e1af5758ae7207ce1c05d7a0458e1 (patch)
treed6ce2e3c0d95ff02388b26e6b7c0cff2f1a2171a /tests/auto/corelib/global/qwinregistry
parent7d2488280ee46fd07f31c895b765ee4072fc1a5a (diff)
function_ref test: Don't take reference of temporaries
When assigning the lambdas directly to a function_ref their lifetime is limited to that of the expression. Store them on the stack first to avoid the UB. Fixes: QTBUG-104419 Pick-to: 6.4 Change-Id: I3c85ac683b0bd7768b646dc9d0a1ed4dd173e6f3 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'tests/auto/corelib/global/qwinregistry')
0 files changed, 0 insertions, 0 deletions