mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-04 13:17:34 +02:00
Remove .data() calls for readability
This commit is contained in:
@@ -242,21 +242,21 @@ Database::enqueue( const Tomahawk::dbcmd_ptr& lc )
|
|||||||
{
|
{
|
||||||
workerThread = m_workerThreads.at( i );
|
workerThread = m_workerThreads.at( i );
|
||||||
|
|
||||||
if ( workerThread && workerThread.data()->worker() && !workerThread.data()->worker().data()->busy() )
|
if ( workerThread && workerThread->worker() && !workerThread->worker()->busy() )
|
||||||
{
|
{
|
||||||
happyWorker = workerThread.data()->worker();
|
happyWorker = workerThread->worker();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
busyThreads++;
|
busyThreads++;
|
||||||
|
|
||||||
if ( ( !happyWorker && workerThread && workerThread.data()->worker() ) ||
|
if ( ( !happyWorker && workerThread && workerThread->worker() ) ||
|
||||||
( workerThread && workerThread.data()->worker() && workerThread.data()->worker().data()->outstandingJobs() < happyWorker.data()->outstandingJobs() ) )
|
( workerThread && workerThread->worker() && workerThread->worker()->outstandingJobs() < happyWorker->outstandingJobs() ) )
|
||||||
happyWorker = workerThread.data()->worker();
|
happyWorker = workerThread->worker();
|
||||||
}
|
}
|
||||||
|
|
||||||
tDebug( LOGVERBOSE ) << "Enqueueing command to thread:" << happyWorker << busyThreads << lc->commandname();
|
tDebug( LOGVERBOSE ) << "Enqueueing command to thread:" << happyWorker << busyThreads << lc->commandname();
|
||||||
Q_ASSERT( happyWorker );
|
Q_ASSERT( happyWorker );
|
||||||
happyWorker.data()->enqueue( lc );
|
happyWorker->enqueue( lc );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user