diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-08-14 16:08:20 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-08-14 16:08:20 +0000 |
commit | bbc768d6ef92f166717d65e67689f6aa15c98952 (patch) | |
tree | e8c891cb5e4a45df93a58eb39c5e10988b0afe7d /persistence/src/tests/dummyimpl | |
parent | e98b5a77300eda52f082b9c17b9cf4915b3fe4b0 (diff) |
Change api so that we can drop clone from the interface and prepare for using a true repo.
Diffstat (limited to 'persistence/src/tests/dummyimpl')
-rw-r--r-- | persistence/src/tests/dummyimpl/dummyimpltest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/persistence/src/tests/dummyimpl/dummyimpltest.cpp b/persistence/src/tests/dummyimpl/dummyimpltest.cpp index 6cf0b53766f..7bc27266020 100644 --- a/persistence/src/tests/dummyimpl/dummyimpltest.cpp +++ b/persistence/src/tests/dummyimpl/dummyimpltest.cpp @@ -14,9 +14,9 @@ namespace { struct DummyPersistenceFactory : public ConformanceTest::PersistenceFactory { using Repo = document::DocumentTypeRepo; - PersistenceProvider::UP + std::unique_ptr<PersistenceProvider> getPersistenceImplementation(const std::shared_ptr<const Repo>& repo, const Repo::DocumenttypesConfig&) override { - return PersistenceProvider::UP(new dummy::DummyPersistence(repo, 4)); + return std::make_unique<dummy::DummyPersistence>(repo, 4); } bool supportsActiveState() const override { return true; } |