1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-05 13:47:26 +02:00

* No need to access SourceList's singleton inside SourceList.

This commit is contained in:
Christian Muehlhaeuser
2011-09-10 09:35:50 +02:00
parent e789066b9b
commit 202c4b821e

View File

@@ -55,12 +55,14 @@ SourceList::getLocal()
return m_local; return m_local;
} }
void void
SourceList::setWebSource( const source_ptr& websrc ) SourceList::setWebSource( const source_ptr& websrc )
{ {
m_dummy = websrc; m_dummy = websrc;
} }
const const
source_ptr SourceList::webSource() const source_ptr SourceList::webSource() const
{ {
@@ -169,7 +171,7 @@ SourceList::get( int id ) const
QMutexLocker lock( &m_mut ); QMutexLocker lock( &m_mut );
if ( id == 0 ) if ( id == 0 )
return SourceList::instance()->getLocal(); return m_local;
else else
return m_sources.value( m_sources_id2name.value( id ) ); return m_sources.value( m_sources_id2name.value( id ) );
} }