diff options
Diffstat (limited to 'src/library/mixxxlibraryfeature.cpp')
-rw-r--r-- | src/library/mixxxlibraryfeature.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/library/mixxxlibraryfeature.cpp b/src/library/mixxxlibraryfeature.cpp index b83c3f8a18..4a905b4327 100644 --- a/src/library/mixxxlibraryfeature.cpp +++ b/src/library/mixxxlibraryfeature.cpp @@ -108,11 +108,11 @@ MixxxLibraryFeature::MixxxLibraryFeature(Library* pLibrary, // These rely on the 'default' track source being present. m_pLibraryTableModel = new LibraryTableModel(this, pTrackCollection, "mixxx.db.model.library"); - TreeItem* pRootItem = new TreeItem(this); - pRootItem->appendChild(new TreeItem(this, kMissingTitle)); - pRootItem->appendChild(new TreeItem(this, kHiddenTitle)); + auto pRootItem = std::make_unique<TreeItem>(this); + pRootItem->appendChild(kMissingTitle); + pRootItem->appendChild(kHiddenTitle); - m_childModel.setRootItem(pRootItem); + m_childModel.setRootItem(std::move(pRootItem)); } MixxxLibraryFeature::~MixxxLibraryFeature() { |