Several fixes of warnings/clang tidy
This commit is contained in:
parent
2f527a8380
commit
880903db5f
15 changed files with 58 additions and 67 deletions
|
|
@ -7,7 +7,7 @@ ASyncWindow::ASyncWindow(QWidget *parent)
|
|||
|
||||
void ASyncWindow::QueueTask(TSQueue::t_Callable c)
|
||||
{
|
||||
m_taskQueue.add(c);
|
||||
m_taskQueue.add(std::move(c));
|
||||
// Theoretically this needs to be only called if the queue was empty because otherwise it already would
|
||||
// be busy emptying the queue. For now however I think it is safer to call it just to make sure.
|
||||
QMetaObject::invokeMethod(this, "processCallableQueue", Qt::QueuedConnection); // queues on main thread
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue