diff options
author | tsepez <tsepez@chromium.org> | 2016-05-18 12:50:41 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-18 12:50:41 -0700 |
commit | a039bc2d0142efe9148ed4580ef304b33570b431 (patch) | |
tree | be4bed659f3c1cf50de9552ad58364fe8331c0e9 /xfa/fxfa/include | |
parent | e7b2853a4143137803609fe96330d7924c1731ed (diff) | |
download | pdfium-a039bc2d0142efe9148ed4580ef304b33570b431.tar.xz |
Remove Release() from CXFA_RenderContext
Review-Url: https://codereview.chromium.org/1994733002
Diffstat (limited to 'xfa/fxfa/include')
-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; |