diff options
Diffstat (limited to 'core/fpdfapi/parser/cpdf_array.cpp')
-rw-r--r-- | core/fpdfapi/parser/cpdf_array.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/fpdfapi/parser/cpdf_array.cpp b/core/fpdfapi/parser/cpdf_array.cpp index d53476d1c2..68b301e283 100644 --- a/core/fpdfapi/parser/cpdf_array.cpp +++ b/core/fpdfapi/parser/cpdf_array.cpp @@ -230,12 +230,13 @@ CPDF_Object* CPDF_Array::Add(std::unique_ptr<CPDF_Object> pObj) { return pRet; } -bool CPDF_Array::WriteTo(IFX_ArchiveStream* archive) const { +bool CPDF_Array::WriteTo(IFX_ArchiveStream* archive, + const CPDF_Encryptor* encryptor) const { if (!archive->WriteString("[")) return false; for (size_t i = 0; i < GetCount(); ++i) { - if (!GetObjectAt(i)->WriteTo(archive)) + if (!GetObjectAt(i)->WriteTo(archive, encryptor)) return false; } return archive->WriteString("]"); |