diff options
author | dsinclair <dsinclair@chromium.org> | 2016-06-09 11:49:22 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-09 11:49:22 -0700 |
commit | 3cace320e07bb954710c50fc7634ca3a8f3eda38 (patch) | |
tree | 83f38f491e9cdc1f9bda3935f3f845528434864a /xfa/fxjse/context.h | |
parent | 2f5582f46dce2abfe9d75ea5f885a2ce0a4c10d2 (diff) | |
download | pdfium-3cace320e07bb954710c50fc7634ca3a8f3eda38.tar.xz |
Change CFXJSE_Context::GetGlobalObject to return
This Cl changes CFXJSE_Context::GetGlobalObject to return a
std::unique_ptr<CFXJSE_Value> instead of accepting a CFXJSE_Value out parameter.
All usages created the CFXJSE_Value with the same runtime as the caller.
Review-Url: https://codereview.chromium.org/2056733003
Diffstat (limited to 'xfa/fxjse/context.h')
-rw-r--r-- | xfa/fxjse/context.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxjse/context.h b/xfa/fxjse/context.h index 4219713ece..0bb1e4fa26 100644 --- a/xfa/fxjse/context.h +++ b/xfa/fxjse/context.h @@ -27,7 +27,7 @@ class CFXJSE_Context { ~CFXJSE_Context(); V8_INLINE v8::Isolate* GetRuntime(void) { return m_pIsolate; } - void GetGlobalObject(CFXJSE_Value* pValue); + std::unique_ptr<CFXJSE_Value> GetGlobalObject(); void EnableCompatibleMode(); FX_BOOL ExecuteScript(const FX_CHAR* szScript, CFXJSE_Value* lpRetValue, |