Clang informs that ITERATIONS_PER_THREAD need not be captured: tst_qpointer.cpp:548:66: warning: lambda capture 'ITERATIONS_PER_THREAD' is not required to be captured for this use [-Wunused-lambda-capture] 548 | QThread::create([&startSemaphore, &targetObject, ITERATIONS_PER_THREAD]() { | ~~^~~~~~~~~~~~~~~~~~~~~ Make ITERATIONS_PER_THREAD (and NUM_THREADS, while at it) constexpr, indicating even to non-language-lawyers that these variables, indeed, need not be captured, then drop the capture. Amends 253f34082f526ff1ffd9eaefac73cc9aa616ab2a. Pick-to: 6.10 6.9 6.8 6.5 Change-Id: I27d94763058e1dcea3a65d4ff2c859b40336446f Reviewed-by: David Faure <david.faure@kdab.com>
…
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%