summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qfutureinterface.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2023-05-31 19:33:10 +0200
committerMarc Mutz <marc.mutz@qt.io>2023-07-13 07:50:25 +0000
commit0ecf8a21587e33c5c5b554d5bc059488001c8990 (patch)
tree12ad9cdca591efd99656461db5fecdc5ab3e86d6 /src/corelib/thread/qfutureinterface.cpp
parent93fe8cb305791ab0099831361ff1634a047dd13f (diff)
QVariant: make customConstructShared() SCARY¹
Extract Method non-template customConstructSharedImpl() to avoid instantiating std::unique_ptr with a different per-F Deleter over and over again. Not picking to 6.5 because the function was confined to the qvariant.cpp TU in those versions. Cf. 11791e2a50417661679f84aeae21ce959cab638f and d783363f60173f1bc6525f1a8bbbd87f1e3afc1d for similar issues. ¹ https://www.open-std.org/jtc1/sc22/WG21/docs/papers/2009/n2911.pdf Pick-to: 6.6 Change-Id: I73d21d929a7db2ab47f62a3246cf913d82e3db75 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/thread/qfutureinterface.cpp')
0 files changed, 0 insertions, 0 deletions