summaryrefslogtreecommitdiff
path: root/fxjs/cjs_runtimestub.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cjs_runtimestub.cpp')
-rw-r--r--fxjs/cjs_runtimestub.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/fxjs/cjs_runtimestub.cpp b/fxjs/cjs_runtimestub.cpp
index 919672832d..964b0ff9d6 100644
--- a/fxjs/cjs_runtimestub.cpp
+++ b/fxjs/cjs_runtimestub.cpp
@@ -55,6 +55,7 @@ void IJS_Runtime::Initialize(unsigned int slot, void* isolate) {}
void IJS_Runtime::Destroy() {}
// static
-IJS_Runtime* IJS_Runtime::Create(CPDFSDK_FormFillEnvironment* pFormFillEnv) {
- return new CJS_RuntimeStub(pFormFillEnv);
+std::unique_ptr<IJS_Runtime> IJS_Runtime::Create(
+ CPDFSDK_FormFillEnvironment* pFormFillEnv) {
+ return pdfium::MakeUnique<CJS_RuntimeStub>(pFormFillEnv);
}