[WTF] Add makeUnique<T>, which ensures T is fast-allocated, makeUnique / makeUniqueWi...
[WebKit-https.git] / Source / WebCore / workers / WorkerScriptLoader.cpp
index 19912f0..228f3d1 100644 (file)
@@ -115,7 +115,7 @@ void WorkerScriptLoader::loadAsynchronously(ScriptExecutionContext& scriptExecut
 
     ASSERT(scriptRequest.httpMethod() == "GET");
 
-    auto request = std::make_unique<ResourceRequest>(WTFMove(scriptRequest));
+    auto request = makeUnique<ResourceRequest>(WTFMove(scriptRequest));
     if (!request)
         return;
 
@@ -147,7 +147,7 @@ const URL& WorkerScriptLoader::responseURL() const
 
 std::unique_ptr<ResourceRequest> WorkerScriptLoader::createResourceRequest(const String& initiatorIdentifier)
 {
-    auto request = std::make_unique<ResourceRequest>(m_url);
+    auto request = makeUnique<ResourceRequest>(m_url);
     request->setHTTPMethod("GET"_s);
     request->setInitiatorIdentifier(initiatorIdentifier);
     return request;