Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(814)

Unified Diff: src/pdf/SkDeflate.cpp

Issue 2293963002: SkMakeUnique.h defines skstd::make_unique<T>(Args...) (Closed)
Patch Set: move to src/core Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkMakeUnique.h ('k') | src/pdf/SkPDFDevice.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « src/core/SkMakeUnique.h ('k') | src/pdf/SkPDFDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698