[WTF] Add makeUnique<T>, which ensures T is fast-allocated, makeUnique / makeUniqueWi...
[WebKit-https.git] / Source / WebCore / platform / image-decoders / bmp / BMPImageDecoder.cpp
index 8407c11..78697eb 100644 (file)
@@ -98,7 +98,7 @@ bool BMPImageDecoder::decodeHelper(bool onlySize)
         return false;
 
     if (!m_reader) {
-        m_reader = std::make_unique<BMPImageReader>(this, m_decodedOffset, imgDataOffset, false);
+        m_reader = makeUnique<BMPImageReader>(this, m_decodedOffset, imgDataOffset, false);
         m_reader->setData(m_data.get());
     }