[WTF] Add makeUnique<T>, which ensures T is fast-allocated, makeUnique / makeUniqueWi...
[WebKit-https.git] / Source / WebCore / Modules / encryptedmedia / InitDataRegistry.cpp
index b6fd68d..75edb6a 100644 (file)
@@ -133,7 +133,7 @@ Optional<Vector<std::unique_ptr<ISOProtectionSystemSpecificHeaderBox>>> InitData
         auto systemID = ISOProtectionSystemSpecificHeaderBox::peekSystemID(view, offset);
 #if HAVE(FAIRPLAYSTREAMING_CENC_INITDATA)
         if (systemID == ISOFairPlayStreamingPsshBox::fairPlaySystemID()) {
-            auto fpsPssh = std::make_unique<ISOFairPlayStreamingPsshBox>();
+            auto fpsPssh = makeUnique<ISOFairPlayStreamingPsshBox>();
             if (!fpsPssh->read(view, offset))
                 return WTF::nullopt;
             psshBoxes.append(WTFMove(fpsPssh));
@@ -142,7 +142,7 @@ Optional<Vector<std::unique_ptr<ISOProtectionSystemSpecificHeaderBox>>> InitData
 #else
         UNUSED_PARAM(systemID);
 #endif
-        auto psshBox = std::make_unique<ISOProtectionSystemSpecificHeaderBox>();
+        auto psshBox = makeUnique<ISOProtectionSystemSpecificHeaderBox>();
         if (!psshBox->read(view, offset))
             return WTF::nullopt;