diff options
| author | Per Larsson <[email protected]> | 2021-12-05 16:03:27 +0100 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2021-12-05 16:03:27 +0100 |
| commit | 9eb0876ab1f35317eb04dd8a74f0394e853f4f56 (patch) | |
| tree | 1dfd11024baea97b01c69b40153086511987f361 /zenstore/CAS.cpp | |
| parent | Merge branch 'gc' of https://github.com/EpicGames/zen into gc (diff) | |
| download | zen-9eb0876ab1f35317eb04dd8a74f0394e853f4f56.tar.xz zen-9eb0876ab1f35317eb04dd8a74f0394e853f4f56.zip | |
Added simple GC interval scheduling.
Diffstat (limited to 'zenstore/CAS.cpp')
| -rw-r--r-- | zenstore/CAS.cpp | 6 |
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; |