1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-04 21:27:58 +02:00

Set weakref via reference

This commit is contained in:
Uwe L. Korn
2014-10-12 19:28:59 +01:00
parent f147ab8ba7
commit 7493b09bd4

View File

@@ -71,7 +71,7 @@ public:
Tomahawk::playlistinterface_ptr playlistInterface(); Tomahawk::playlistinterface_ptr playlistInterface();
QWeakPointer< Tomahawk::Artist > weakRef() { return m_ownRef; } QWeakPointer< Tomahawk::Artist > weakRef() { return m_ownRef; }
void setWeakRef( QWeakPointer< Tomahawk::Artist > weakRef ) { m_ownRef = weakRef; } void setWeakRef( const QWeakPointer< Tomahawk::Artist >& weakRef ) { m_ownRef = weakRef; }
void loadId( bool autoCreate ); void loadId( bool autoCreate );