diff options
author | tsepez <tsepez@chromium.org> | 2016-10-03 15:24:27 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-03 15:24:27 -0700 |
commit | 36eb4bdcae719cf33c536ff72ac000482aed8382 (patch) | |
tree | b3c3467fa10eafc3863a619ef511d1bf20af6367 /fpdfsdk/javascript/JS_Runtime_Stub.cpp | |
parent | 76383db4906c9357292846ace77566b34eb47de9 (diff) | |
download | pdfium-36eb4bdcae719cf33c536ff72ac000482aed8382.tar.xz |
Add ptr_util.h from base until std::make_unique<> available
Review-Url: https://codereview.chromium.org/2386273004
Diffstat (limited to 'fpdfsdk/javascript/JS_Runtime_Stub.cpp')
-rw-r--r-- | fpdfsdk/javascript/JS_Runtime_Stub.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fpdfsdk/javascript/JS_Runtime_Stub.cpp b/fpdfsdk/javascript/JS_Runtime_Stub.cpp index 3b316aaf69..8d8ac33474 100644 --- a/fpdfsdk/javascript/JS_Runtime_Stub.cpp +++ b/fpdfsdk/javascript/JS_Runtime_Stub.cpp @@ -8,6 +8,7 @@ #include "fpdfsdk/javascript/ijs_context.h" #include "fpdfsdk/javascript/ijs_runtime.h" +#include "third_party/base/ptr_util.h" class CJS_ContextStub final : public IJS_Context { public: @@ -124,7 +125,7 @@ class CJS_RuntimeStub final : public IJS_Runtime { IJS_Context* NewContext() override { if (!m_pContext) - m_pContext = WrapUnique(new CJS_ContextStub()); + m_pContext = pdfium::MakeUnique<CJS_ContextStub>(); return GetCurrentContext(); } |