From a039bc2d0142efe9148ed4580ef304b33570b431 Mon Sep 17 00:00:00 2001 From: tsepez Date: Wed, 18 May 2016 12:50:41 -0700 Subject: Remove Release() from CXFA_RenderContext Review-Url: https://codereview.chromium.org/1994733002 --- xfa/fxfa/include/xfa_rendercontext.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xfa/fxfa/include/xfa_rendercontext.h') diff --git a/xfa/fxfa/include/xfa_rendercontext.h b/xfa/fxfa/include/xfa_rendercontext.h index cd7949d78b..1154b8c5f4 100644 --- a/xfa/fxfa/include/xfa_rendercontext.h +++ b/xfa/fxfa/include/xfa_rendercontext.h @@ -7,6 +7,8 @@ #ifndef XFA_FXFA_INCLUDE_XFA_RENDERCONTEXT_H_ #define XFA_FXFA_INCLUDE_XFA_RENDERCONTEXT_H_ +#include + #include "xfa/fxfa/include/fxfa.h" class CXFA_RenderContext { @@ -14,7 +16,6 @@ class CXFA_RenderContext { CXFA_RenderContext(); ~CXFA_RenderContext(); - void Release() { delete this; } int32_t StartRender(CXFA_FFPageView* pPageView, CFX_Graphics* pGS, const CFX_Matrix& matrix, @@ -23,7 +24,7 @@ class CXFA_RenderContext { void StopRender(); protected: - IXFA_WidgetIterator* m_pWidgetIterator; + std::unique_ptr m_pWidgetIterator; CXFA_FFWidget* m_pWidget; CXFA_FFPageView* m_pPageView; CFX_Graphics* m_pGS; -- cgit v1.2.3