[WTF] Add makeUnique<T>, which ensures T is fast-allocated, makeUnique / makeUniqueWi...
[WebKit-https.git] / Source / WebCore / Modules / fetch / FetchResponse.cpp
index cd345eb..94013cf 100644 (file)
@@ -243,7 +243,7 @@ void FetchResponse::fetch(ScriptExecutionContext& context, FetchRequest& request
 
     response->addAbortSteps(request.signal());
 
 
     response->addAbortSteps(request.signal());
 
-    response->m_bodyLoader = std::make_unique<BodyLoader>(response.get(), WTFMove(responseCallback));
+    response->m_bodyLoader = makeUnique<BodyLoader>(response.get(), WTFMove(responseCallback));
     if (!response->m_bodyLoader->start(context, request))
         response->m_bodyLoader = nullptr;
 }
     if (!response->m_bodyLoader->start(context, request))
         response->m_bodyLoader = nullptr;
 }
@@ -382,7 +382,7 @@ void FetchResponse::BodyLoader::didReceiveData(const char* data, size_t size)
 
 bool FetchResponse::BodyLoader::start(ScriptExecutionContext& context, const FetchRequest& request)
 {
 
 bool FetchResponse::BodyLoader::start(ScriptExecutionContext& context, const FetchRequest& request)
 {
-    m_loader = std::make_unique<FetchLoader>(*this, &m_response.m_body->consumer());
+    m_loader = makeUnique<FetchLoader>(*this, &m_response.m_body->consumer());
     m_loader->start(context, request);
     return m_loader->isStarted();
 }
     m_loader->start(context, request);
     return m_loader->isStarted();
 }