Replace use of OwnArrayPtr<Foo> with std::unique_ptr<Foo[]> in WebCore
[WebKit-https.git] / Source / WebCore / platform / audio / DynamicsCompressor.h
index f781afe..59c17e0 100644 (file)
@@ -32,8 +32,7 @@
 #include "AudioArray.h"
 #include "DynamicsCompressorKernel.h"
 #include "ZeroPole.h"
-
-#include <wtf/OwnArrayPtr.h>
+#include <memory>
 
 namespace WebCore {
 
@@ -103,8 +102,8 @@ protected:
     Vector<OwnPtr<ZeroPoleFilterPack4> > m_preFilterPacks;
     Vector<OwnPtr<ZeroPoleFilterPack4> > m_postFilterPacks;
 
-    OwnArrayPtr<const float*> m_sourceChannels;
-    OwnArrayPtr<float*> m_destinationChannels;
+    std::unique_ptr<const float*[]> m_sourceChannels;
+    std::unique_ptr<float*[]> m_destinationChannels;
 
     void setEmphasisStageParameters(unsigned stageIndex, float gain, float normalizedFrequency /* 0 -> 1 */);
     void setEmphasisParameters(float gain, float anchorFreq, float filterStageRatio);