diff options
author | Lei Zhang <thestig@chromium.org> | 2018-05-09 23:15:12 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-09 23:15:12 +0000 |
commit | 3774c7a452886b9c8beeb5fa1b54a34611551180 (patch) | |
tree | aba96eeb7d9fc266ecbe7bc460dcaac869514ecf /fpdfsdk/fpdf_ppo.cpp | |
parent | 7e28208d26764438bef62e051d2e1fed13e1e0ec (diff) | |
download | pdfium-3774c7a452886b9c8beeb5fa1b54a34611551180.tar.xz |
Add proper const/non-const versions of CPDF_Array methods.
Instead of having const methods that return non-const pointers.
BUG=pdfium:234
Change-Id: I61495543f67229500dfcf2248e93468e9a9b23cf
Reviewed-on: https://pdfium-review.googlesource.com/32183
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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/fpdf_ppo.cpp b/fpdfsdk/fpdf_ppo.cpp index bf8ed25af0..1790e17fb3 100644 --- a/fpdfsdk/fpdf_ppo.cpp +++ b/fpdfsdk/fpdf_ppo.cpp @@ -695,7 +695,7 @@ uint32_t CPDF_NPageToOneExporter::MakeXObject( if (const CPDF_Array* pSrcContentArray = ToArray(pSrcContentObj)) { ByteString bsSrcContentStream; for (size_t i = 0; i < pSrcContentArray->GetCount(); ++i) { - CPDF_Stream* pStream = pSrcContentArray->GetStreamAt(i); + const CPDF_Stream* pStream = pSrcContentArray->GetStreamAt(i); auto pAcc = pdfium::MakeRetain<CPDF_StreamAcc>(pStream); pAcc->LoadAllDataFiltered(); ByteString bsStream(pAcc->GetData(), pAcc->GetSize()); |