diff options
author | Lei Zhang <thestig@chromium.org> | 2018-05-25 21:49:49 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-25 21:49:49 +0000 |
commit | de579ab0092d43fe037c381710da998b9ff823e9 (patch) | |
tree | 9b164e67d06aea6e96054bf4cb4a7db951481f4c /core/fpdfapi/page/cpdf_function.cpp | |
parent | 5cee3f28ead05cb336377483e24664c004af8b0a (diff) | |
download | pdfium-de579ab0092d43fe037c381710da998b9ff823e9.tar.xz |
Add proper const/non-const versions of CPDF_Dictionary::GetArrayFor().
BUG=pdfium:234
Change-Id: I5c900aa0547afef0c60de35422b4ee489daa6cfb
Reviewed-on: https://pdfium-review.googlesource.com/32913
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_function.cpp')
-rw-r--r-- | core/fpdfapi/page/cpdf_function.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/page/cpdf_function.cpp b/core/fpdfapi/page/cpdf_function.cpp index ad3b666a1f..b9753abeef 100644 --- a/core/fpdfapi/page/cpdf_function.cpp +++ b/core/fpdfapi/page/cpdf_function.cpp @@ -100,7 +100,7 @@ bool CPDF_Function::Init(const CPDF_Object* pObj, m_pDomains[i] = pDomains->GetFloatAt(i); } - CPDF_Array* pRanges = pDict->GetArrayFor("Range"); + const CPDF_Array* pRanges = pDict->GetArrayFor("Range"); m_nOutputs = pRanges ? pRanges->GetCount() / 2 : 0; // Ranges are required for type 0 and type 4 functions. A non-zero |