summaryrefslogtreecommitdiff
path: root/xfa/fxfa/include
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-05-18 12:50:41 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-18 12:50:41 -0700
commita039bc2d0142efe9148ed4580ef304b33570b431 (patch)
treebe4bed659f3c1cf50de9552ad58364fe8331c0e9 /xfa/fxfa/include
parente7b2853a4143137803609fe96330d7924c1731ed (diff)
downloadpdfium-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.h5
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;