New syntax for QMetaObject::invokeMethod(this, &CWorker::deleteLater)

This commit is contained in:
Klaus Basan
2018-07-27 09:36:09 +02:00
parent e1c7edb24d
commit 19f5fd1735

View File

@@ -88,8 +88,8 @@ namespace BlackMisc
auto *ownThread = thread();
moveToThread(ownThread->thread()); // move worker back to the thread which constructed it, so there is no race on deletion
QMetaObject::invokeMethod(ownThread, "deleteLater");
QMetaObject::invokeMethod(this, "deleteLater");
QMetaObject::invokeMethod(ownThread, &CWorker::deleteLater);
QMetaObject::invokeMethod(this, &CWorker::deleteLater);
}
const CLogCategoryList &CWorkerBase::getLogCategories()