diff options
author | dsinclair <dsinclair@chromium.org> | 2016-07-11 08:55:08 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-11 08:55:08 -0700 |
commit | bb95c50663a1ba3378c6b079dc21dc7deb8ea53a (patch) | |
tree | c604c09399411c2d002c789ff8073e11f210632f /xfa/fde | |
parent | 34f86b0c7816289d2a0b402d1909572f4e95613b (diff) | |
download | pdfium-bb95c50663a1ba3378c6b079dc21dc7deb8ea53a.tar.xz |
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
Diffstat (limited to 'xfa/fde')
-rw-r--r-- | xfa/fde/xml/fde_xml_imp.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/xfa/fde/xml/fde_xml_imp.h b/xfa/fde/xml/fde_xml_imp.h index ba75f6b409..2667a106b7 100644 --- a/xfa/fde/xml/fde_xml_imp.h +++ b/xfa/fde/xml/fde_xml_imp.h @@ -193,7 +193,6 @@ class CFDE_XMLDoc : public CFX_Target { CFDE_XMLDoc(); ~CFDE_XMLDoc() override; - void Release() { delete this; } FX_BOOL LoadXML(CFDE_XMLParser* pXMLParser); int32_t DoLoad(IFX_Pause* pPause = nullptr); void CloseXML(); |