[WTF] Add makeUnique<T>, which ensures T is fast-allocated, makeUnique / makeUniqueWi...
[WebKit-https.git] / Source / WebCore / workers / WorkerEventQueue.cpp
index 9267e87..6903be5 100644 (file)
@@ -85,7 +85,7 @@ bool WorkerEventQueue::enqueueEvent(Ref<Event>&& event)
         return false;
 
     auto* eventPtr = event.ptr();
-    auto eventDispatcher = std::make_unique<EventDispatcher>(WTFMove(event), *this);
+    auto eventDispatcher = makeUnique<EventDispatcher>(WTFMove(event), *this);
     m_eventDispatcherMap.add(eventPtr, eventDispatcher.get());
     m_scriptExecutionContext.postTask([eventDispatcher = WTFMove(eventDispatcher)] (ScriptExecutionContext&) {
         eventDispatcher->dispatch();