diff options
author | Lei Zhang <thestig@chromium.org> | 2017-06-16 19:30:38 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-06-19 13:36:39 +0000 |
commit | ad0982add85998db0ef42a5c01ae2031ae7874d2 (patch) | |
tree | 86e5ab482bff25f0482da75191d0bd7cbcf32c35 /fpdfsdk/cpdfsdk_formfillenvironment.cpp | |
parent | ab5939e1ad77f0d4fcdb0abc258da1e6fb7eef1a (diff) | |
download | pdfium-ad0982add85998db0ef42a5c01ae2031ae7874d2.tar.xz |
Mark more CPDFSDK_FormFillEnvironment methods as const.
Change-Id: Ie7bd4ec567ce932c8010bae744ba42cf40706b79
Reviewed-on: https://pdfium-review.googlesource.com/6678
Commit-Queue: Nicolás Peña <npm@chromium.org>
Reviewed-by: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'fpdfsdk/cpdfsdk_formfillenvironment.cpp')
-rw-r--r-- | fpdfsdk/cpdfsdk_formfillenvironment.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/cpdfsdk_formfillenvironment.cpp b/fpdfsdk/cpdfsdk_formfillenvironment.cpp index 8c5025ed88..def57d625f 100644 --- a/fpdfsdk/cpdfsdk_formfillenvironment.cpp +++ b/fpdfsdk/cpdfsdk_formfillenvironment.cpp @@ -749,6 +749,6 @@ bool CPDFSDK_FormFillEnvironment::KillFocusAnnot(uint32_t nFlag) { return false; } -bool CPDFSDK_FormFillEnvironment::GetPermissions(int nFlag) { +bool CPDFSDK_FormFillEnvironment::GetPermissions(int nFlag) const { return !!(GetPDFDocument()->GetUserPermissions() & nFlag); } |