[WTF] Add makeUnique<T>, which ensures T is fast-allocated, makeUnique / makeUniqueWi...
[WebKit-https.git] / Source / WebCore / platform / ios / PasteboardIOS.mm
index 191ac76..0271b93 100644 (file)
@@ -66,12 +66,12 @@ void Pasteboard::setDragImage(DragImage, const IntPoint&)
 
 std::unique_ptr<Pasteboard> Pasteboard::createForDragAndDrop()
 {
-    return std::make_unique<Pasteboard>("data interaction pasteboard");
+    return makeUnique<Pasteboard>("data interaction pasteboard");
 }
 
 std::unique_ptr<Pasteboard> Pasteboard::createForDragAndDrop(const DragData& dragData)
 {
-    return std::make_unique<Pasteboard>(dragData.pasteboardName());
+    return makeUnique<Pasteboard>(dragData.pasteboardName());
 }
 
 #endif
@@ -101,7 +101,7 @@ void Pasteboard::writeMarkup(const String&)
 
 std::unique_ptr<Pasteboard> Pasteboard::createForCopyAndPaste()
 {
-    return std::make_unique<Pasteboard>(changeCountForPasteboard());
+    return makeUnique<Pasteboard>(changeCountForPasteboard());
 }
 
 void Pasteboard::write(const PasteboardWebContent& content)