1
0
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:
Uwe L. Korn
2014-09-11 23:58:30 +01:00
parent f4f553566d
commit 489a83e401

View File

@@ -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() );
} }
/** /**