mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-04 17:30:12 +08:00
New syntax for QMetaObject::invokeMethod(this, &CWorker::deleteLater)
This commit is contained in:
@@ -88,8 +88,8 @@ namespace BlackMisc
|
|||||||
|
|
||||||
auto *ownThread = thread();
|
auto *ownThread = thread();
|
||||||
moveToThread(ownThread->thread()); // move worker back to the thread which constructed it, so there is no race on deletion
|
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(ownThread, &CWorker::deleteLater);
|
||||||
QMetaObject::invokeMethod(this, "deleteLater");
|
QMetaObject::invokeMethod(this, &CWorker::deleteLater);
|
||||||
}
|
}
|
||||||
|
|
||||||
const CLogCategoryList &CWorkerBase::getLogCategories()
|
const CLogCategoryList &CWorkerBase::getLogCategories()
|
||||||
|
|||||||
Reference in New Issue
Block a user