[WTF] Add makeUnique<T>, which ensures T is fast-allocated, makeUnique / makeUniqueWi...
[WebKit-https.git] / Source / WebCore / platform / graphics / win / GraphicsContextCairoWin.cpp
index 1067b96..f144257 100644 (file)
@@ -78,7 +78,7 @@ void GraphicsContext::platformInit(HDC dc, bool hasAlpha)
 
     cairo_t* cr = createCairoContextWithHDC(dc, hasAlpha);
 
-    m_data = new GraphicsContextPlatformPrivate(std::make_unique<PlatformContextCairo>(cr));
+    m_data = new GraphicsContextPlatformPrivate(makeUnique<PlatformContextCairo>(cr));
     m_data->platformContext.setGraphicsContextPrivate(m_data);
     m_data->m_hdc = dc;
     if (platformContext()->cr()) {