mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-10 16:14:40 +02:00
Pedantic whitespace fixing
This commit is contained in:
@@ -186,25 +186,25 @@ MusicScanner::startScan()
|
|||||||
//bear in mind that simply passing in the top-level of a defined collection means it will not return items that need
|
//bear in mind that simply passing in the top-level of a defined collection means it will not return items that need
|
||||||
//to be removed that aren't in that root any longer -- might have to do the filtering in setMTimes based on strings
|
//to be removed that aren't in that root any longer -- might have to do the filtering in setMTimes based on strings
|
||||||
DatabaseCommand_DirMtimes *cmd = new DatabaseCommand_DirMtimes();
|
DatabaseCommand_DirMtimes *cmd = new DatabaseCommand_DirMtimes();
|
||||||
connect( cmd, SIGNAL( done( QMap<QString, unsigned int> ) ),
|
connect( cmd, SIGNAL( done( QMap< QString, unsigned int > ) ),
|
||||||
SLOT( setDirMtimes( QMap<QString, unsigned int> ) ) );
|
SLOT( setDirMtimes( QMap< QString, unsigned int > ) ) );
|
||||||
|
|
||||||
Database::instance()->enqueue( QSharedPointer<DatabaseCommand>(cmd) );
|
Database::instance()->enqueue( QSharedPointer< DatabaseCommand >( cmd ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
MusicScanner::setDirMtimes( const QMap<QString, unsigned int>& m )
|
MusicScanner::setDirMtimes( const QMap< QString, unsigned int >& m )
|
||||||
{
|
{
|
||||||
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << m.count();
|
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << m.count();
|
||||||
m_dirmtimes = m;
|
m_dirmtimes = m;
|
||||||
if ( m_mode == TomahawkSettings::Files )
|
if ( m_mode == TomahawkSettings::Files )
|
||||||
{
|
{
|
||||||
DatabaseCommand_FileMtimes *cmd = new DatabaseCommand_FileMtimes();
|
DatabaseCommand_FileMtimes *cmd = new DatabaseCommand_FileMtimes();
|
||||||
connect( cmd, SIGNAL( done( QMap<QString, QMap< unsigned int, unsigned int > > ) ),
|
connect( cmd, SIGNAL( done( QMap< QString, QMap< unsigned int, unsigned int > > ) ),
|
||||||
SLOT( setFileMtimes( QMap<QString, QMap< unsigned int, unsigned int > > ) ) );
|
SLOT( setFileMtimes( QMap< QString, QMap< unsigned int, unsigned int > > ) ) );
|
||||||
|
|
||||||
Database::instance()->enqueue( QSharedPointer<DatabaseCommand>(cmd) );
|
Database::instance()->enqueue( QSharedPointer< DatabaseCommand >( cmd ) );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
scan();
|
scan();
|
||||||
@@ -212,7 +212,7 @@ MusicScanner::setDirMtimes( const QMap<QString, unsigned int>& m )
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
MusicScanner::setFileMtimes( const QMap<QString, QMap< unsigned int, unsigned int > >& m )
|
MusicScanner::setFileMtimes( const QMap< QString, QMap< unsigned int, unsigned int > >& m )
|
||||||
{
|
{
|
||||||
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << m.count();
|
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << m.count();
|
||||||
m_filemtimes = m;
|
m_filemtimes = m;
|
||||||
@@ -239,8 +239,8 @@ MusicScanner::scan()
|
|||||||
SLOT( scanFile( QFileInfo ) ), Qt::QueuedConnection );
|
SLOT( scanFile( QFileInfo ) ), Qt::QueuedConnection );
|
||||||
|
|
||||||
// queued, so will only fire after all dirs have been scanned:
|
// queued, so will only fire after all dirs have been scanned:
|
||||||
connect( m_dirLister.data(), SIGNAL( finished( QMap<QString, unsigned int> ) ),
|
connect( m_dirLister.data(), SIGNAL( finished( QMap< QString, unsigned int > ) ),
|
||||||
SLOT( listerFinished( QMap<QString, unsigned int> ) ), Qt::QueuedConnection );
|
SLOT( listerFinished( QMap< QString, unsigned int > ) ), Qt::QueuedConnection );
|
||||||
|
|
||||||
m_dirListerThreadController->start();
|
m_dirListerThreadController->start();
|
||||||
QMetaObject::invokeMethod( m_dirLister.data(), "go" );
|
QMetaObject::invokeMethod( m_dirLister.data(), "go" );
|
||||||
|
Reference in New Issue
Block a user