diff options
author | Lei Zhang <thestig@chromium.org> | 2018-05-24 01:36:40 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-24 01:36:40 +0000 |
commit | dbf13f6562a902df17f6e543d3be844ca82956e2 (patch) | |
tree | 7ba195555b7534e51708fd8d26000db0700b7cfe /fpdfsdk/pwl | |
parent | 7e33dbeec78dfa051df52619672133da6a799240 (diff) | |
download | pdfium-dbf13f6562a902df17f6e543d3be844ca82956e2.tar.xz |
Improve constness for more CPDF_Objects pointers.
Most of them can be marked const. A couple are marked non-const because
eventually something inside gets modified.
Change-Id: I5415ca8d1efdac451cde340272436cd1e6ec433f
Reviewed-on: https://pdfium-review.googlesource.com/32184
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'fpdfsdk/pwl')
-rw-r--r-- | fpdfsdk/pwl/cpwl_icon.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/pwl/cpwl_icon.cpp b/fpdfsdk/pwl/cpwl_icon.cpp index 52a4464639..567a5786e6 100644 --- a/fpdfsdk/pwl/cpwl_icon.cpp +++ b/fpdfsdk/pwl/cpwl_icon.cpp @@ -49,7 +49,7 @@ std::pair<float, float> CPWL_Icon::GetIconPosition() { if (!m_pIconFit) return {0.0f, 0.0f}; - CPDF_Array* pA = + const CPDF_Array* pA = m_pIconFit->GetDict() ? m_pIconFit->GetDict()->GetArrayFor("A") : nullptr; if (!pA) return {0.0f, 0.0f}; |