mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 20:00:13 +02:00
Do not use virtual methods in constructors
This commit is contained in:
@@ -75,14 +75,14 @@ public:
|
|||||||
explicit DatabaseCommand_SocialAction( const Tomahawk::trackdata_ptr& track, QString action, QString comment = "", QObject* parent = 0 )
|
explicit DatabaseCommand_SocialAction( const Tomahawk::trackdata_ptr& track, QString action, QString comment = "", QObject* parent = 0 )
|
||||||
: DatabaseCommandLoggable( parent )
|
: DatabaseCommandLoggable( parent )
|
||||||
, m_track( track )
|
, m_track( track )
|
||||||
|
, m_comment( comment )
|
||||||
, m_action( action )
|
, m_action( action )
|
||||||
{
|
{
|
||||||
setSource( SourceList::instance()->getLocal() );
|
setSource( SourceList::instance()->getLocal() );
|
||||||
|
|
||||||
setArtist( track->artist() );
|
m_artist = track->artist();
|
||||||
setTrack( track->track() );
|
m_title = track->track();
|
||||||
setComment( comment );
|
m_timestamp = QDateTime::currentDateTime().toTime_t();
|
||||||
setTimestamp( QDateTime::currentDateTime().toTime_t() );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user