From 85c532b35b53836bebfdb8f8832905d5f313cf47 Mon Sep 17 00:00:00 2001 From: tsepez Date: Wed, 18 Jan 2017 14:30:36 -0800 Subject: use unique_ptr in xfa_checksum.h Review-Url: https://codereview.chromium.org/2613143002 --- xfa/fxfa/xfa_checksum.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'xfa/fxfa/xfa_checksum.h') diff --git a/xfa/fxfa/xfa_checksum.h b/xfa/fxfa/xfa_checksum.h index 45c3db59c9..31cf101553 100644 --- a/xfa/fxfa/xfa_checksum.h +++ b/xfa/fxfa/xfa_checksum.h @@ -7,6 +7,8 @@ #ifndef XFA_FXFA_XFA_CHECKSUM_H_ #define XFA_FXFA_XFA_CHECKSUM_H_ +#include + #include "core/fdrm/crypto/fx_crypt.h" #include "xfa/fde/xml/cfx_saxreader.h" #include "xfa/fxfa/fxfa.h" @@ -70,8 +72,8 @@ class CXFA_ChecksumContext { CFX_ByteString GetChecksum() const; protected: - CFX_SAXReader* m_pSAXReader; - CRYPT_sha1_context* m_pByteContext; + std::unique_ptr m_pSAXReader; + std::unique_ptr m_pByteContext; CFX_ByteString m_bsChecksum; }; -- cgit v1.2.3