| Index: src/pdf/SkPDFTypes.cpp
|
| diff --git a/src/pdf/SkPDFTypes.cpp b/src/pdf/SkPDFTypes.cpp
|
| index 838b5efeb9d1166281a9538bc2e50aeb71d2535c..7a1e0a48f5e8961fb7aa49ffe1e120dcd09d4e37 100644
|
| --- a/src/pdf/SkPDFTypes.cpp
|
| +++ b/src/pdf/SkPDFTypes.cpp
|
| @@ -7,6 +7,7 @@
|
|
|
| #include "SkData.h"
|
| #include "SkDeflate.h"
|
| +#include "SkMakeUnique.h"
|
| #include "SkPDFTypes.h"
|
| #include "SkPDFUtils.h"
|
| #include "SkStream.h"
|
| @@ -506,8 +507,7 @@ void SkPDFSharedStream::addResources(
|
| ////////////////////////////////////////////////////////////////////////////////
|
|
|
| SkPDFStream:: SkPDFStream(sk_sp<SkData> data) {
|
| - this->setData(std::unique_ptr<SkStreamAsset>(
|
| - new SkMemoryStream(std::move(data))));
|
| + this->setData(skstd::make_unique<SkMemoryStream>(std::move(data)));
|
| }
|
|
|
| SkPDFStream::SkPDFStream(std::unique_ptr<SkStreamAsset> stream) {
|
|
|