Index: src/pdf/SkDeflate.cpp |
diff --git a/src/pdf/SkDeflate.cpp b/src/pdf/SkDeflate.cpp |
index 2c5a3caffeb1f22e9ff9ea18ad2cab19a5df7a3e..c2b85fccb326c182028c60973df6bd23e225fef1 100644 |
--- a/src/pdf/SkDeflate.cpp |
+++ b/src/pdf/SkDeflate.cpp |
@@ -8,6 +8,7 @@ |
#include "SkData.h" |
#include "SkDeflate.h" |
+#include "SkMakeUnique.h" |
#include "zlib.h" |
@@ -62,7 +63,7 @@ struct SkDeflateWStream::Impl { |
SkDeflateWStream::SkDeflateWStream(SkWStream* out, |
int compressionLevel, |
bool gzip) |
- : fImpl(new SkDeflateWStream::Impl) { |
+ : fImpl(skstd::make_unique<SkDeflateWStream::Impl>()) { |
fImpl->fOut = out; |
fImpl->fInBufferIndex = 0; |
if (!fImpl->fOut) { |