comparison Core/Cache/MemoryCache.cpp @ 3712:2a170a8f1faf

replacing std::auto_ptr by std::unique_ptr
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Mar 2020 15:32:45 +0100
parents 94f4a18a79cc
children
comparison
equal deleted inserted replaced
3709:1f4910999fe7 3712:2a170a8f1faf
60 index_.RemoveOldest(p); 60 index_.RemoveOldest(p);
61 delete p; 61 delete p;
62 } 62 }
63 63
64 // Create a new cache page 64 // Create a new cache page
65 std::auto_ptr<Page> result(new Page); 65 std::unique_ptr<Page> result(new Page);
66 result->id_ = id; 66 result->id_ = id;
67 result->content_.reset(provider_.Provide(id)); 67 result->content_.reset(provider_.Provide(id));
68 68
69 // Add the newly create page to the cache 69 // Add the newly create page to the cache
70 VLOG(1) << "Registering new data in a cache page"; 70 VLOG(1) << "Registering new data in a cache page";