diff options
Diffstat (limited to 'src/corelib/thread/qfutureinterface.cpp')
-rw-r--r-- | src/corelib/thread/qfutureinterface.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/corelib/thread/qfutureinterface.cpp b/src/corelib/thread/qfutureinterface.cpp index 6184d9133a..de35089b2c 100644 --- a/src/corelib/thread/qfutureinterface.cpp +++ b/src/corelib/thread/qfutureinterface.cpp @@ -118,11 +118,7 @@ void QtPrivate::watchContinuationImpl(const QObject *context, QSlotObjectBase *s Q_ASSERT(context); Q_ASSERT(slotObj); - // ### we're missing `QSlotObjectPtr`... - struct Deleter { - void operator()(QSlotObjectBase *p) const { p->destroyIfLastRef(); } - }; - auto slot = std::unique_ptr<QSlotObjectBase, Deleter>(slotObj); + auto slot = SlotObjUniquePtr(slotObj); auto *watcher = new QBasicFutureWatcher; watcher->moveToThread(context->thread()); |