aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf/SkDeflate.cpp
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2016-09-02 11:29:46 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-02 11:29:46 -0700
commit022c2bd37a3d5b1611928b67e0be1c30a1a0946f (patch)
tree7b7d317361d1a0c10633575081c662b2a79502d8 /src/pdf/SkDeflate.cpp
parent233eb0adc7df47ac38eac20231f4b04e90cb0d8d (diff)
SkMakeUnique.h defines skstd::make_unique<T>(Args...)
Diffstat (limited to 'src/pdf/SkDeflate.cpp')
-rw-r--r--src/pdf/SkDeflate.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pdf/SkDeflate.cpp b/src/pdf/SkDeflate.cpp
index 2c5a3caffe..c2b85fccb3 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) {