Index: xfa/fxfa/parser/cxfa_scriptcontext.cpp |
diff --git a/xfa/fxfa/parser/cxfa_scriptcontext.cpp b/xfa/fxfa/parser/cxfa_scriptcontext.cpp |
index 8cad0e08c4af1c42901a5cd995aa598c839e39ee..60ee722c91eb6b8d92798aeb1d38dd557f24de93 100644 |
--- a/xfa/fxfa/parser/cxfa_scriptcontext.cpp |
+++ b/xfa/fxfa/parser/cxfa_scriptcontext.cpp |
@@ -9,6 +9,7 @@ |
#include <utility> |
#include "core/fxcrt/fx_ext.h" |
+#include "third_party/base/ptr_util.h" |
#include "fxjs/cfxjse_arguments.h" |
#include "fxjs/cfxjse_class.h" |
#include "fxjs/cfxjse_value.h" |
@@ -142,8 +143,9 @@ void CXFA_ScriptContext::Initialize(v8::Isolate* pIsolate) { |
m_pIsolate = pIsolate; |
DefineJsContext(); |
DefineJsClass(); |
- m_ResolveProcessor.reset(new CXFA_ResolveProcessor); |
+ m_ResolveProcessor = pdfium::MakeUnique<CXFA_ResolveProcessor>(); |
} |
+ |
bool CXFA_ScriptContext::RunScript(XFA_SCRIPTLANGTYPE eScriptType, |
const CFX_WideStringC& wsScript, |
CFXJSE_Value* hRetValue, |