diff options
author | Uwe Klotz <uklotz@mixxx.org> | 2020-02-23 02:22:05 +0100 |
---|---|---|
committer | Uwe Klotz <uklotz@mixxx.org> | 2020-02-23 02:22:05 +0100 |
commit | e6693641f7bb9269e5a72e3d36def30083e116b7 (patch) | |
tree | efac0546f9972bc8f19a1e648691d4424983669e /src/library/trackcollection.cpp | |
parent | a5dec6a4d9ec0593620adf740a4c29b0ba169d54 (diff) |
Replace QSharedPointer::get() with data()
Diffstat (limited to 'src/library/trackcollection.cpp')
-rw-r--r-- | src/library/trackcollection.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/library/trackcollection.cpp b/src/library/trackcollection.cpp index 6778b6d8a8..067c671647 100644 --- a/src/library/trackcollection.cpp +++ b/src/library/trackcollection.cpp @@ -70,27 +70,27 @@ void TrackCollection::connectTrackSource(QSharedPointer<BaseTrackCache> pTrackSo m_pTrackSource = pTrackSource; connect(&m_trackDao, &TrackDAO::trackDirty, - m_pTrackSource.get(), + m_pTrackSource.data(), &BaseTrackCache::slotTrackDirty); connect(&m_trackDao, &TrackDAO::trackClean, - m_pTrackSource.get(), + m_pTrackSource.data(), &BaseTrackCache::slotTrackClean); connect(&m_trackDao, &TrackDAO::trackChanged, - m_pTrackSource.get(), + m_pTrackSource.data(), &BaseTrackCache::slotTrackChanged); connect(&m_trackDao, &TrackDAO::tracksAdded, - m_pTrackSource.get(), + m_pTrackSource.data(), &BaseTrackCache::slotTracksAdded); connect(&m_trackDao, &TrackDAO::tracksRemoved, - m_pTrackSource.get(), + m_pTrackSource.data(), &BaseTrackCache::slotTracksRemoved); connect(&m_trackDao, &TrackDAO::dbTrackAdded, - m_pTrackSource.get(), + m_pTrackSource.data(), &BaseTrackCache::slotDbTrackAdded); } @@ -100,7 +100,7 @@ QWeakPointer<BaseTrackCache> TrackCollection::disconnectTrackSource() { auto pWeakPtr = m_pTrackSource.toWeakRef(); if (m_pTrackSource) { kLogger.info() << "Disconnecting track source"; - m_trackDao.disconnect(m_pTrackSource.get()); + m_trackDao.disconnect(m_pTrackSource.data()); m_pTrackSource.reset(); } return pWeakPtr; |