Replace use of OwnArrayPtr<Foo> with std::unique_ptr<Foo[]> in WebCore
[WebKit-https.git] / Source / WebCore / platform / graphics / GraphicsContext3DPrivate.cpp
index dcf2680..eb5df98 100644 (file)
@@ -24,7 +24,7 @@
 
 #include "HostWindow.h"
 #include "NotImplemented.h"
-#include <wtf/OwnArrayPtr.h>
+#include <wtf/StdLibExtras.h>
 
 #if PLATFORM(NIX) && USE(EGL)
 #include "GLContextFromCurrentEGL.h"
@@ -107,7 +107,7 @@ void GraphicsContext3DPrivate::paintToTextureMapper(TextureMapper* textureMapper
         const int width = m_context->m_currentWidth;
         int totalBytes = width * height * 4;
 
-        OwnArrayPtr<unsigned char> pixels = adoptArrayPtr(new unsigned char[totalBytes]);
+        auto pixels = std::make_unique<unsigned char[]>(totalBytes);
         if (!pixels)
             return;