[WTF] Add makeUnique<T>, which ensures T is fast-allocated, makeUnique / makeUniqueWi...
[WebKit-https.git] / Source / WebKit / NetworkProcess / cache / NetworkCacheSubresourcesEntry.cpp
index 7b88922..63ad040 100644 (file)
@@ -93,7 +93,7 @@ Storage::Record SubresourcesEntry::encodeAsStorageRecord() const
 
 std::unique_ptr<SubresourcesEntry> SubresourcesEntry::decodeStorageRecord(const Storage::Record& storageEntry)
 {
-    auto entry = std::make_unique<SubresourcesEntry>(storageEntry);
+    auto entry = makeUnique<SubresourcesEntry>(storageEntry);
 
     WTF::Persistence::Decoder decoder(storageEntry.header.data(), storageEntry.header.size());
     if (!decoder.decode(entry->m_subresources))