mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 15:59:42 +01:00
Initialize to 0 in *all* constructors
This commit is contained in:
parent
8641222395
commit
01bf3a3818
@ -93,6 +93,7 @@ PlaylistEntry::setLastSource( source_ptr s )
|
||||
Playlist::Playlist( const source_ptr& author )
|
||||
: m_source( author )
|
||||
, m_lastmodified( 0 )
|
||||
, m_updater( 0 )
|
||||
{
|
||||
}
|
||||
|
||||
@ -252,12 +253,12 @@ void
|
||||
Playlist::reportDeleted( const Tomahawk::playlist_ptr& self )
|
||||
{
|
||||
Q_ASSERT( self.data() == this );
|
||||
m_deleted = true;
|
||||
m_source->collection()->deletePlaylist( self );
|
||||
|
||||
if ( m_updater )
|
||||
m_updater->remove();
|
||||
|
||||
m_deleted = true;
|
||||
m_source->collection()->deletePlaylist( self );
|
||||
|
||||
emit deleted( self );
|
||||
}
|
||||
|
||||
|
@ -83,6 +83,9 @@ PlaylistUpdaterInterface::doSave()
|
||||
void
|
||||
PlaylistUpdaterInterface::remove()
|
||||
{
|
||||
if ( m_playlist.isNull() )
|
||||
return;
|
||||
|
||||
TomahawkSettings* s = TomahawkSettings::instance();
|
||||
const QString key = QString( "playlistupdaters/%1" ).arg( m_playlist->guid() );
|
||||
removeFromSettings( key );
|
||||
|
Loading…
x
Reference in New Issue
Block a user