summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_document.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-03-21 17:08:48 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-03-22 00:52:29 +0000
commit742fa8c3b39f0e3713c3450b1f9979174fbb4c8f (patch)
tree52961cb20d49bec368592e38c5bf7c43594383fa /xfa/fxfa/parser/cxfa_document.h
parent38f6d9d1134a23d9319a4efc3ac6e3f824d2ac40 (diff)
downloadpdfium-742fa8c3b39f0e3713c3450b1f9979174fbb4c8f.tar.xz
Use moar unique_ptrs in CXFA_Document
Change-Id: I3300b3013396885ae2c9f85caee630915799e181 Reviewed-on: https://pdfium-review.googlesource.com/3143 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_document.h')
-rw-r--r--xfa/fxfa/parser/cxfa_document.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/xfa/fxfa/parser/cxfa_document.h b/xfa/fxfa/parser/cxfa_document.h
index 0bf7e1989d..293515610c 100644
--- a/xfa/fxfa/parser/cxfa_document.h
+++ b/xfa/fxfa/parser/cxfa_document.h
@@ -8,6 +8,7 @@
#define XFA_FXFA_PARSER_CXFA_DOCUMENT_H_
#include <map>
+#include <memory>
#include <unordered_set>
#include <vector>
@@ -110,16 +111,16 @@ class CXFA_Document {
protected:
CXFA_DocumentParser* m_pParser;
- CXFA_ScriptContext* m_pScriptContext;
- CXFA_LayoutProcessor* m_pLayoutProcessor;
CXFA_Node* m_pRootNode;
- CXFA_LocaleMgr* m_pLocalMgr;
- CScript_DataWindow* m_pScriptDataWindow;
- CScript_EventPseudoModel* m_pScriptEvent;
- CScript_HostPseudoModel* m_pScriptHost;
- CScript_LogPseudoModel* m_pScriptLog;
- CScript_LayoutPseudoModel* m_pScriptLayout;
- CScript_SignaturePseudoModel* m_pScriptSignature;
+ std::unique_ptr<CXFA_ScriptContext> m_pScriptContext;
+ std::unique_ptr<CXFA_LayoutProcessor> m_pLayoutProcessor;
+ std::unique_ptr<CXFA_LocaleMgr> m_pLocalMgr;
+ std::unique_ptr<CScript_DataWindow> m_pScriptDataWindow;
+ std::unique_ptr<CScript_EventPseudoModel> m_pScriptEvent;
+ std::unique_ptr<CScript_HostPseudoModel> m_pScriptHost;
+ std::unique_ptr<CScript_LogPseudoModel> m_pScriptLog;
+ std::unique_ptr<CScript_LayoutPseudoModel> m_pScriptLayout;
+ std::unique_ptr<CScript_SignaturePseudoModel> m_pScriptSignature;
std::unordered_set<CXFA_Node*> m_PurgeNodes;
XFA_VERSION m_eCurVersionMode;
uint32_t m_dwDocFlags;