diff options
Diffstat (limited to 'xfa/fxfa/include/xfa_rendercontext.h')
-rw-r--r-- | xfa/fxfa/include/xfa_rendercontext.h | 5 |
1 files changed, 3 insertions, 2 deletions
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 <memory> + #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<IXFA_WidgetIterator> m_pWidgetIterator; CXFA_FFWidget* m_pWidget; CXFA_FFPageView* m_pPageView; CFX_Graphics* m_pGS; |