From 3857904e520ecb06bad545e4e4bfcf4e60dd1f52 Mon Sep 17 00:00:00 2001 From: tsepez Date: Mon, 16 May 2016 17:05:38 -0700 Subject: Remove Release() { delete this; } in CFXA_Data{Importer,Exporter} Review-Url: https://codereview.chromium.org/1988453002 --- xfa/fxfa/parser/xfa_document_serialize.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xfa/fxfa/parser') diff --git a/xfa/fxfa/parser/xfa_document_serialize.h b/xfa/fxfa/parser/xfa_document_serialize.h index 6448953231..9136efce90 100644 --- a/xfa/fxfa/parser/xfa_document_serialize.h +++ b/xfa/fxfa/parser/xfa_document_serialize.h @@ -19,7 +19,6 @@ class CXFA_DataImporter { public: explicit CXFA_DataImporter(CXFA_Document* pDocument); - void Release() { delete this; } FX_BOOL ImportData(IFX_FileRead* pDataDocument); protected: @@ -30,7 +29,6 @@ class CXFA_DataExporter { public: explicit CXFA_DataExporter(CXFA_Document* pDocument); - void Release() { delete this; } FX_BOOL Export(IFX_FileWrite* pWrite); FX_BOOL Export(IFX_FileWrite* pWrite, CXFA_Node* pNode, @@ -42,6 +40,7 @@ class CXFA_DataExporter { CXFA_Node* pNode, uint32_t dwFlag, const FX_CHAR* pChecksum); + CXFA_Document* const m_pDocument; }; -- cgit v1.2.3