summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdf_ppo.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-05-09 22:02:32 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-09 22:02:32 +0000
commit7e28208d26764438bef62e051d2e1fed13e1e0ec (patch)
tree781d3e250a4fd3af3eb16da299b56938b21a7414 /fpdfsdk/fpdf_ppo.cpp
parent52489ee8114cf476342231be610e75b324290920 (diff)
downloadpdfium-7e28208d26764438bef62e051d2e1fed13e1e0ec.tar.xz
Add proper const/non-const versions of CPDF_Object methods.
Instead of having const methods that return non-const pointers. BUG=pdfium:234 Change-Id: I598e9b4f267f702e2e71001cfe3aa3c9e9d8c12f Reviewed-on: https://pdfium-review.googlesource.com/32182 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdf_ppo.cpp')
-rw-r--r--fpdfsdk/fpdf_ppo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/fpdf_ppo.cpp b/fpdfsdk/fpdf_ppo.cpp
index c3b6402a97..bf8ed25af0 100644
--- a/fpdfsdk/fpdf_ppo.cpp
+++ b/fpdfsdk/fpdf_ppo.cpp
@@ -168,7 +168,7 @@ const CPDF_Object* PageDictGetInheritableTag(const CPDF_Dictionary* pDict,
CFX_FloatRect GetMediaBox(const CPDF_Dictionary* pPageDict) {
const CPDF_Object* pMediaBox =
PageDictGetInheritableTag(pPageDict, "MediaBox");
- CPDF_Array* pArray = ToArray(pMediaBox->GetDirect());
+ const CPDF_Array* pArray = ToArray(pMediaBox->GetDirect());
if (!pArray)
return CFX_FloatRect();
return pArray->GetRect();