diff options
author | Uwe Klotz <uklotz@mixxx.org> | 2019-11-25 00:15:58 +0100 |
---|---|---|
committer | Uwe Klotz <uklotz@mixxx.org> | 2019-11-25 00:34:28 +0100 |
commit | fa4920a072774278f92226d5ae29c05f3814a34a (patch) | |
tree | 89104cc51a34c60a221aa81ec9f795a0a222a80f /src/library/library.cpp | |
parent | 624be0ea395beab93b9c753fc16ddb3a2b1a7119 (diff) |
Use parented_ptr
Diffstat (limited to 'src/library/library.cpp')
-rw-r--r-- | src/library/library.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/library/library.cpp b/src/library/library.cpp index 1c3205d304..07f9ca93dd 100644 --- a/src/library/library.cpp +++ b/src/library/library.cpp @@ -77,8 +77,8 @@ Library::Library( m_pConfig(std::move(pConfig)), m_pDbConnectionPool(std::move(pDbConnectionPool)), m_pTrackCollectionManager(pTrackCollectionManager), - m_pSidebarModel(new SidebarModel(this)), - m_pLibraryControl(new LibraryControl(this)), + m_pSidebarModel(make_parented<SidebarModel>(this)), + m_pLibraryControl(make_parented<LibraryControl>(this)), m_pMixxxLibraryFeature(nullptr), m_pPlaylistFeature(nullptr), m_pCrateFeature(nullptr), @@ -101,7 +101,7 @@ Library::Library( addFeature(m_pMixxxLibraryFeature); addFeature(new AutoDJFeature(this, m_pConfig, pPlayerManager)); - m_pPlaylistFeature = new PlaylistFeature(this, m_pConfig); + m_pPlaylistFeature = new PlaylistFeature(this, UserSettingsPointer(m_pConfig)); addFeature(m_pPlaylistFeature); m_pCrateFeature = new CrateFeature(this, m_pConfig); addFeature(m_pCrateFeature); @@ -123,7 +123,7 @@ Library::Library( addFeature(browseFeature); addFeature(new RecordingFeature(this, m_pConfig, pRecordingManager)); - addFeature(new SetlogFeature(this, m_pConfig)); + addFeature(new SetlogFeature(this, UserSettingsPointer(m_pConfig))); m_pAnalysisFeature = new AnalysisFeature(this, m_pConfig); connect(m_pPlaylistFeature, &PlaylistFeature::analyzeTracks, |