summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/fpdfview.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-11-20 09:39:49 -0800
committerTom Sepez <tsepez@chromium.org>2015-11-20 09:39:49 -0800
commitbd716fcf89f38bb82eb97ae73e9af60c2232328e (patch)
tree265fd408ab60a6ee2824b949eff048b97e6e23d8 /fpdfsdk/src/fpdfview.cpp
parent3ccd36892fe826e8f2ed8dde0819756ae3546733 (diff)
downloadpdfium-bd716fcf89f38bb82eb97ae73e9af60c2232328e.tar.xz
Update master fpdfsdk to match XFA
R=thestig@chromium.org Review URL: https://codereview.chromium.org/1458853005 .
Diffstat (limited to 'fpdfsdk/src/fpdfview.cpp')
-rw-r--r--fpdfsdk/src/fpdfview.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/fpdfsdk/src/fpdfview.cpp b/fpdfsdk/src/fpdfview.cpp
index 795ef3fbd0..6ffb523468 100644
--- a/fpdfsdk/src/fpdfview.cpp
+++ b/fpdfsdk/src/fpdfview.cpp
@@ -255,8 +255,7 @@ DLLEXPORT unsigned long STDCALL FPDF_GetDocPermissions(FPDF_DOCUMENT document) {
if (!pDoc)
return 0;
- CPDF_Parser* pParser = (CPDF_Parser*)pDoc->GetParser();
- CPDF_Dictionary* pDict = pParser->GetEncryptDict();
+ CPDF_Dictionary* pDict = pDoc->GetParser()->GetEncryptDict();
return pDict ? pDict->GetInteger("P") : (FX_DWORD)-1;
}
@@ -265,8 +264,7 @@ DLLEXPORT int STDCALL FPDF_GetSecurityHandlerRevision(FPDF_DOCUMENT document) {
if (!pDoc)
return -1;
- CPDF_Parser* pParser = (CPDF_Parser*)pDoc->GetParser();
- CPDF_Dictionary* pDict = pParser->GetEncryptDict();
+ CPDF_Dictionary* pDict = pDoc->GetParser()->GetEncryptDict();
return pDict ? pDict->GetInteger("R") : -1;
}