qt6-bb10/tests/auto/corelib/thread/qpromise
Andrei Golubev ba511b2fa4 Reject overwrites by the same index in QPromise::addResult()
One can call addResult(value, index) twice and consequently set the
value twice by the same index. This seems rather strange and probably
should not be allowed. This commit rejects setting results when there's
already a valid result by that index. Consequently, this fixes memory
leaks caused by N-times-called addResult(..., index)

Fixes: QTBUG-86828
Change-Id: I77494f2cb73ce727ffad721cfcdcaa420899eb25
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
2020-10-13 17:04:16 +02:00
..
CMakeLists.txt CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qpromise.pro
snippet_qpromise.cpp Fix QFuture::waitForFinished to wait until QFuture is started 2020-08-26 16:37:43 +02:00
tst_qpromise.cpp Reject overwrites by the same index in QPromise::addResult() 2020-10-13 17:04:16 +02:00