From 332b701c565b4ce85dfa4dfa8a4a6eaf77bf87a1 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Fri, 24 May 2013 10:49:00 +0200 Subject: [PATCH] Change ContolContection* to QPointer --- src/libtomahawk/Source.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libtomahawk/Source.h b/src/libtomahawk/Source.h index 842665cf2..f46d633a5 100644 --- a/src/libtomahawk/Source.h +++ b/src/libtomahawk/Source.h @@ -25,6 +25,7 @@ #include #include "Typedefs.h" +#include "network/ControlConnection.h" #include "network/DbSyncConnection.h" #include "collection/Collection.h" #include "Query.h" @@ -32,7 +33,6 @@ #include "DllMacro.h" -class ControlConnection; class DatabaseCommand_DeleteFiles; class DatabaseCommand_LoadAllSources; class DatabaseCommand_LogPlayback; @@ -85,7 +85,7 @@ public: void removeCollection( const Tomahawk::collection_ptr& c ); int id() const { return m_id; } - ControlConnection* controlConnection() const { return m_cc; } + ControlConnection* controlConnection() const { return m_cc.data(); } void setControlConnection( ControlConnection* cc ); const QSet< Tomahawk::peerinfo_ptr > peerInfos() const; @@ -168,7 +168,7 @@ private: DBSyncConnection::State m_state; QTimer m_currentTrackTimer; - ControlConnection* m_cc; + QPointer m_cc; QList< QSharedPointer > m_cmds; int m_commandCount; QString m_lastCmdGuid;