aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktestutils/quick/visualtestutils.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2023-06-26 11:13:26 +0200
committerMarc Mutz <marc.mutz@qt.io>2023-06-27 21:33:32 +0200
commit7d450891a2565f2e91430b1415f320ff01fc5914 (patch)
treed119d5f77239fc2402d662bfd2518473ac181ce5 /src/quicktestutils/quick/visualtestutils.cpp
parent8a39f7655f4cfbc35c1886b49e2f3a9ada263e39 (diff)
QRecyclePool: replace New() overload with varidic template
Now that we have ruled out the presence of users of the nullary, default-initializing overload, we can replace the overload set with a variadic template. This allows nullary calls again, but the objects returned are now value-constructed instead of default constructed. As a drive-by, mark the function [[nodiscard]] (discarding the return value is a memory leak) and use q20::construct_at() instead of raw placement new. Change-Id: Ic4f842b9a05ab7e9b86ec9b2dee843ab276b6a00 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/quicktestutils/quick/visualtestutils.cpp')
0 files changed, 0 insertions, 0 deletions