diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-06-26 18:42:28 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-06-26 18:42:28 +0000 |
commit | 0a6dbeffbc61f2140b1b845f6791c1b15b34cbd7 (patch) | |
tree | 7f17e935721f2e9752d2b80fe4cdcbb4f8eb79ba /fpdfsdk | |
parent | 785da23f6cce8004b8e7759345abd877dab953ea (diff) | |
download | pdfium-0a6dbeffbc61f2140b1b845f6791c1b15b34cbd7.tar.xz |
Add some more consts to unowned pointers.
Ideally, unowned ptrs might well be const, as updating something
through an unowned reference is best avoided.
Change-Id: Ida8111ffe0ee1e30bbf6b7718b0929dfb5cafdff
Reviewed-on: https://pdfium-review.googlesource.com/36050
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk')
-rw-r--r-- | fpdfsdk/fpdf_editpage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/fpdf_editpage.cpp b/fpdfsdk/fpdf_editpage.cpp index 4acb5b6cb5..2d9a2c7aa0 100644 --- a/fpdfsdk/fpdf_editpage.cpp +++ b/fpdfsdk/fpdf_editpage.cpp @@ -382,7 +382,7 @@ FPDFPageObj_HasTransparency(FPDF_PAGEOBJECT pageObject) { if (blend_type != FXDIB_BLEND_NORMAL) return true; - CPDF_Dictionary* pSMaskDict = + const CPDF_Dictionary* pSMaskDict = ToDictionary(pPageObj->m_GeneralState.GetSoftMask()); if (pSMaskDict) return true; |