qt5base-lts/tests/auto/corelib/global
Mårten Nordheim 3d73aa660b 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>
2022-06-20 19:52:01 +00:00
..
q_func_info Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qcompare Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qflags Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qfloat16 Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qgetputenv Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qglobal qglobal.h: use the GCC attribute for nothrow in C mode 2022-05-27 14:12:07 -07:00
qglobalstatic Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qhooks Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qkeycombination Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qlogging Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qnativeinterface Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qnumeric Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qoperatingsystemversion Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qrandomgenerator Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtendian Endian: Remove old special integer bitfields 2022-06-16 06:12:27 +00:00
qwinregistry Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qxp function_ref test: Don't take reference of temporaries 2022-06-20 19:52:01 +00:00
CMakeLists.txt Short live qxp::function_ref! 2022-06-02 12:54:55 +02:00