diff options
author | Tom Sepez <tsepez@chromium.org> | 2017-05-23 17:10:46 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-24 00:49:21 +0000 |
commit | 655c783b8077f18e17418a3aab9b5a07c8055049 (patch) | |
tree | e121b850ead5af67156b126c2e8d2fdcfa4be6a9 /core/fpdfapi/parser/cpdf_parser.cpp | |
parent | 6f3593c5cdf62915fc086448312671ce1fce5291 (diff) | |
download | pdfium-655c783b8077f18e17418a3aab9b5a07c8055049.tar.xz |
Convert to CFX_UnownedPtr, part 3.
Remove an explicit clear to re-order the member
destruction order.
Change-Id: I33da3f3de4b8e8e0cfbdceaf5140e98f5d6f904a
Reviewed-on: https://pdfium-review.googlesource.com/5791
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/parser/cpdf_parser.cpp')
-rw-r--r-- | core/fpdfapi/parser/cpdf_parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfapi/parser/cpdf_parser.cpp b/core/fpdfapi/parser/cpdf_parser.cpp index 54b8ea0aa3..bf8bc7b542 100644 --- a/core/fpdfapi/parser/cpdf_parser.cpp +++ b/core/fpdfapi/parser/cpdf_parser.cpp @@ -245,12 +245,12 @@ CPDF_Parser::Error CPDF_Parser::SetEncryptHandler() { std::unique_ptr<CPDF_SecurityHandler> pSecurityHandler = pdfium::MakeUnique<CPDF_SecurityHandler>(); - if (!pSecurityHandler->OnInit(this, m_pEncryptDict)) + if (!pSecurityHandler->OnInit(this, m_pEncryptDict.Get())) return PASSWORD_ERROR; m_pSecurityHandler = std::move(pSecurityHandler); auto pCryptoHandler = pdfium::MakeRetain<CPDF_CryptoHandler>(); - if (!pCryptoHandler->Init(m_pEncryptDict, m_pSecurityHandler.get())) + if (!pCryptoHandler->Init(m_pEncryptDict.Get(), m_pSecurityHandler.get())) return HANDLER_ERROR; m_pSyntax->SetEncrypt(pCryptoHandler); } |