From bb95c50663a1ba3378c6b079dc21dc7deb8ea53a Mon Sep 17 00:00:00 2001 From: dsinclair Date: Mon, 11 Jul 2016 08:55:08 -0700 Subject: Cleanup ownership of parser members Change m_pXMLDoc and m_pStream in CXFA_SimpleParser to be a unique_ptr. This allows removing the CloseParser() call from CXFA_DocumentParser as the items will get cleaned up automatically. Review-Url: https://codereview.chromium.org/2131653002 --- xfa/fxfa/parser/cxfa_document_parser.h | 1 - 1 file changed, 1 deletion(-) (limited to 'xfa/fxfa/parser/cxfa_document_parser.h') diff --git a/xfa/fxfa/parser/cxfa_document_parser.h b/xfa/fxfa/parser/cxfa_document_parser.h index 42275df1f1..3e72f9b258 100644 --- a/xfa/fxfa/parser/cxfa_document_parser.h +++ b/xfa/fxfa/parser/cxfa_document_parser.h @@ -29,7 +29,6 @@ class CXFA_DocumentParser { CFDE_XMLDoc* GetXMLDoc() const; CXFA_FFNotify* GetNotify() const; CXFA_Document* GetDocument() const; - void CloseParser(); protected: CXFA_SimpleParser m_nodeParser; -- cgit v1.2.3