diff options
author | Lei Zhang <thestig@chromium.org> | 2017-12-04 06:13:55 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-12-04 06:13:55 +0000 |
commit | 8509d3eaec1b2fac27a24de7bc586ad12b7bb178 (patch) | |
tree | 820b680b9b313b3788165a3de7e4c08901f2f6e4 /xfa/fxfa/parser | |
parent | 56b08b1f2bb8a4eb9330963bff3a626603499730 (diff) | |
download | pdfium-8509d3eaec1b2fac27a24de7bc586ad12b7bb178.tar.xz |
Make a CXFA_DocumentParser member Unowned.
Fix/cleanup ctors/dtors in related classes.
Change-Id: Ia05ec9b6892fd7d19d0a417fc1226a407e3ac260
Reviewed-on: https://pdfium-review.googlesource.com/20216
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser')
-rw-r--r-- | xfa/fxfa/parser/cxfa_document_parser.cpp | 2 | ||||
-rw-r--r-- | xfa/fxfa/parser/cxfa_document_parser.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fxfa/parser/cxfa_document_parser.cpp b/xfa/fxfa/parser/cxfa_document_parser.cpp index df7d789781..6446ea31ce 100644 --- a/xfa/fxfa/parser/cxfa_document_parser.cpp +++ b/xfa/fxfa/parser/cxfa_document_parser.cpp @@ -45,7 +45,7 @@ CFX_XMLDoc* CXFA_DocumentParser::GetXMLDoc() const { } CXFA_FFNotify* CXFA_DocumentParser::GetNotify() const { - return m_pNotify; + return m_pNotify.Get(); } CXFA_Document* CXFA_DocumentParser::GetDocument() const { diff --git a/xfa/fxfa/parser/cxfa_document_parser.h b/xfa/fxfa/parser/cxfa_document_parser.h index 6629101457..35d71603cb 100644 --- a/xfa/fxfa/parser/cxfa_document_parser.h +++ b/xfa/fxfa/parser/cxfa_document_parser.h @@ -31,7 +31,7 @@ class CXFA_DocumentParser { CXFA_Document* GetDocument() const; private: - CXFA_FFNotify* const m_pNotify; + UnownedPtr<CXFA_FFNotify> const m_pNotify; std::unique_ptr<CXFA_Document> m_pDocument; CXFA_SimpleParser m_nodeParser; }; |