diff options
Diffstat (limited to 'fpdfsdk/src/javascript/global.cpp')
-rw-r--r-- | fpdfsdk/src/javascript/global.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fpdfsdk/src/javascript/global.cpp b/fpdfsdk/src/javascript/global.cpp index 295a8d49af..6bf0861e1a 100644 --- a/fpdfsdk/src/javascript/global.cpp +++ b/fpdfsdk/src/javascript/global.cpp @@ -13,6 +13,7 @@ #include "../../include/javascript/global.h" #include "../../include/javascript/JS_EventHandler.h" #include "../../include/javascript/JS_Context.h" +#include "../../include/fpdfxfa/fpdfxfa_app.h" /* ---------------------------- global ---------------------------- */ @@ -54,7 +55,7 @@ global_alternate::~global_alternate(void) // CommitGlobalPersisitentVariables(); DestroyGlobalPersisitentVariables(); - CJS_RuntimeFactory* pFactory = m_pApp->m_pJSRuntimeFactory; + CJS_RuntimeFactory* pFactory = FPDFXFA_GetApp()->GetRuntimeFactory(); ASSERT(pFactory); pFactory->ReleaseGlobalData(); @@ -64,7 +65,7 @@ void global_alternate::Initial(CPDFDoc_Environment* pApp) { m_pApp = pApp; - CJS_RuntimeFactory* pFactory = pApp->m_pJSRuntimeFactory; + CJS_RuntimeFactory* pFactory = FPDFXFA_GetApp()->GetRuntimeFactory(); ASSERT(pFactory); m_pGlobalData = pFactory->NewGlobalData(pApp); UpdateGlobalPersistentVariables(); |