diff options
author | Lei Zhang <thestig@chromium.org> | 2017-11-03 18:40:04 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-03 18:40:04 +0000 |
commit | e18ac44ddc7eb98e5301e40b5cb19c88215cda13 (patch) | |
tree | 10858784f8acadfc48ac38c11a53bc4f566d80c3 /core/fpdfapi/edit | |
parent | ff63663ce08c31efa416bc797c2d3ef96759f780 (diff) | |
download | pdfium-e18ac44ddc7eb98e5301e40b5cb19c88215cda13.tar.xz |
Simplify CPDF_SecurityHandler.
Remove unused method params, impossible code, and mark methods const.
Change-Id: Iee95c7b931461e2aadcf2422650a0cd48c8f7696
Reviewed-on: https://pdfium-review.googlesource.com/17790
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/edit')
-rw-r--r-- | core/fpdfapi/edit/cpdf_creator.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/fpdfapi/edit/cpdf_creator.cpp b/core/fpdfapi/edit/cpdf_creator.cpp index 9064854779..38abb85822 100644 --- a/core/fpdfapi/edit/cpdf_creator.cpp +++ b/core/fpdfapi/edit/cpdf_creator.cpp @@ -803,10 +803,9 @@ void CPDF_Creator::InitID() { if (m_pEncryptDict && !pOldIDArray && m_pParser && !idArrayPreExisting) { if (m_pEncryptDict->GetStringFor("Filter") == "Standard") { ByteString user_pass = m_pParser->GetPassword(); - uint32_t flag = PDF_ENCRYPT_CONTENT; m_pSecurityHandler = pdfium::MakeUnique<CPDF_SecurityHandler>(); m_pSecurityHandler->OnCreate(m_pEncryptDict.Get(), m_pIDArray.get(), - user_pass, flag); + user_pass); m_bSecurityChanged = true; } } |