summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/PublicMethods.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-09-22 11:06:02 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-22 11:06:02 -0700
commit8e0638b1531493e2d5fe3a603f4be60418c78bc4 (patch)
tree76792886acce1d8251261eb35489698808f3c761 /fpdfsdk/javascript/PublicMethods.cpp
parenta4ad5957af799374d4710f3847b85f57bea13f47 (diff)
downloadpdfium-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/PublicMethods.cpp')
-rw-r--r--fpdfsdk/javascript/PublicMethods.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/javascript/PublicMethods.cpp b/fpdfsdk/javascript/PublicMethods.cpp
index 435c383b34..65af6a1fa5 100644
--- a/fpdfsdk/javascript/PublicMethods.cpp
+++ b/fpdfsdk/javascript/PublicMethods.cpp
@@ -80,9 +80,9 @@ CFX_WideString StrTrim(const CFX_WideString& pStr) {
}
void AlertIfPossible(CJS_Context* pContext, const FX_WCHAR* swMsg) {
- CPDFSDK_Environment* pApp = pContext->GetReaderApp();
- if (pApp)
- pApp->JS_appAlert(swMsg, nullptr, 0, 3);
+ CPDFSDK_Environment* pEnv = pContext->GetReaderEnv();
+ if (pEnv)
+ pEnv->JS_appAlert(swMsg, nullptr, 0, 3);
}
} // namespace