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