mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-13 15:45:42 +08:00
Jenkins not yet supporting the new QMetaObject::invokeMethod syntax, locally on Qt 5.11 it is working
This commit is contained in:
@@ -84,17 +84,19 @@ namespace BlackMisc
|
|||||||
{
|
{
|
||||||
m_result = m_task();
|
m_result = m_task();
|
||||||
|
|
||||||
setFinished();
|
this->setFinished();
|
||||||
|
|
||||||
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
|
this->moveToThread(ownThread->thread()); // move worker back to the thread which constructed it, so there is no race on deletion
|
||||||
QMetaObject::invokeMethod(ownThread, &CWorker::deleteLater);
|
|
||||||
QMetaObject::invokeMethod(this, &CWorker::deleteLater);
|
//! \todo KB 2018-97 new syntax not yet supported on Jenkins QMetaObject::invokeMethod(ownThread, &CWorker::deleteLater)
|
||||||
|
QMetaObject::invokeMethod(ownThread, "deleteLater");
|
||||||
|
QMetaObject::invokeMethod(this, "deleteLater");
|
||||||
}
|
}
|
||||||
|
|
||||||
const CLogCategoryList &CWorkerBase::getLogCategories()
|
const CLogCategoryList &CWorkerBase::getLogCategories()
|
||||||
{
|
{
|
||||||
static const BlackMisc::CLogCategoryList cats { BlackMisc::CLogCategory::worker() };
|
static const BlackMisc::CLogCategoryList cats { CLogCategory::worker() };
|
||||||
return cats;
|
return cats;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user