CollectionBackendTest: Use std::make_shared
This commit is contained in:
@@ -37,6 +37,7 @@
|
|||||||
#include "collection/collection.h"
|
#include "collection/collection.h"
|
||||||
|
|
||||||
using std::make_unique;
|
using std::make_unique;
|
||||||
|
using std::make_shared;
|
||||||
|
|
||||||
// clazy:excludeall=non-pod-global-static,returning-void-expression
|
// clazy:excludeall=non-pod-global-static,returning-void-expression
|
||||||
|
|
||||||
@@ -45,7 +46,7 @@ namespace {
|
|||||||
class CollectionBackendTest : public ::testing::Test {
|
class CollectionBackendTest : public ::testing::Test {
|
||||||
protected:
|
protected:
|
||||||
void SetUp() override {
|
void SetUp() override {
|
||||||
database_.reset(new MemoryDatabase(nullptr));
|
database_ = make_shared<MemoryDatabase>(nullptr);
|
||||||
backend_ = make_unique<CollectionBackend>();
|
backend_ = make_unique<CollectionBackend>();
|
||||||
backend_->Init(database_, nullptr, Song::Source::Collection, QLatin1String(SCollection::kSongsTable), QLatin1String(SCollection::kDirsTable), QLatin1String(SCollection::kSubdirsTable));
|
backend_->Init(database_, nullptr, Song::Source::Collection, QLatin1String(SCollection::kSongsTable), QLatin1String(SCollection::kDirsTable), QLatin1String(SCollection::kSubdirsTable));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user