aboutsummaryrefslogtreecommitdiff
path: root/zenstore/CAS.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'zenstore/CAS.cpp')
-rw-r--r--zenstore/CAS.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/zenstore/CAS.cpp b/zenstore/CAS.cpp
index a0d47c213..40846e368 100644
--- a/zenstore/CAS.cpp
+++ b/zenstore/CAS.cpp
@@ -333,10 +333,10 @@ CasImpl::TotalSize() const
//////////////////////////////////////////////////////////////////////////
-CasStore*
+std::unique_ptr<CasStore>
CreateCasStore(CasGc& Gc)
{
- return new CasImpl(Gc);
+ return std::make_unique<CasImpl>(Gc);
}
//////////////////////////////////////////////////////////////////////////
@@ -355,7 +355,7 @@ TEST_CASE("CasStore")
CasGc Gc;
- std::unique_ptr<CasStore> Store{CreateCasStore(Gc)};
+ std::unique_ptr<CasStore> Store = CreateCasStore(Gc);
Store->Initialize(config);
ScrubContext Ctx;