diff options
author | dsinclair <dsinclair@chromium.org> | 2016-09-22 11:06:02 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-22 11:06:02 -0700 |
commit | 8e0638b1531493e2d5fe3a603f4be60418c78bc4 (patch) | |
tree | 76792886acce1d8251261eb35489698808f3c761 /fpdfsdk/javascript/global.cpp | |
parent | a4ad5957af799374d4710f3847b85f57bea13f47 (diff) | |
download | pdfium-8e0638b1531493e2d5fe3a603f4be60418c78bc4.tar.xz |
Rename App to Env where needed.
More instances of CPDFSDK_Environment being called m_pApp in the code. Renamed
to m_pEnv to be clear that it's the environment not an app object.
Review-Url: https://codereview.chromium.org/2354413002
Diffstat (limited to 'fpdfsdk/javascript/global.cpp')
-rw-r--r-- | fpdfsdk/javascript/global.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fpdfsdk/javascript/global.cpp b/fpdfsdk/javascript/global.cpp index 42ae8d54ce..b55953907f 100644 --- a/fpdfsdk/javascript/global.cpp +++ b/fpdfsdk/javascript/global.cpp @@ -33,7 +33,7 @@ void CJS_Global::InitInstance(IJS_Runtime* pIRuntime) { CJS_Runtime* pRuntime = static_cast<CJS_Runtime*>(pIRuntime); JSGlobalAlternate* pGlobal = static_cast<JSGlobalAlternate*>(GetEmbedObject()); - pGlobal->Initial(pRuntime->GetReaderApp()); + pGlobal->Initial(pRuntime->GetReaderEnv()); } JSGlobalData::JSGlobalData() @@ -49,16 +49,16 @@ JSGlobalData::~JSGlobalData() { } JSGlobalAlternate::JSGlobalAlternate(CJS_Object* pJSObject) - : CJS_EmbedObj(pJSObject), m_pApp(nullptr) {} + : CJS_EmbedObj(pJSObject), m_pEnv(nullptr) {} JSGlobalAlternate::~JSGlobalAlternate() { DestroyGlobalPersisitentVariables(); m_pGlobalData->Release(); } -void JSGlobalAlternate::Initial(CPDFSDK_Environment* pApp) { - m_pApp = pApp; - m_pGlobalData = CJS_GlobalData::GetRetainedInstance(pApp); +void JSGlobalAlternate::Initial(CPDFSDK_Environment* pEnv) { + m_pEnv = pEnv; + m_pGlobalData = CJS_GlobalData::GetRetainedInstance(pEnv); UpdateGlobalPersistentVariables(); } |