Index: xfa/fwl/basewidget/fwl_caretimp.h |
diff --git a/xfa/fwl/basewidget/fwl_caretimp.h b/xfa/fwl/basewidget/fwl_caretimp.h |
index 4f16715cd1cb513338dfea126daba499c35535a7..d8b621b43c28fb35b9c1cdf35bb7a1468faa68dc 100644 |
--- a/xfa/fwl/basewidget/fwl_caretimp.h |
+++ b/xfa/fwl/basewidget/fwl_caretimp.h |
@@ -7,6 +7,8 @@ |
#ifndef XFA_FWL_BASEWIDGET_FWL_CARETIMP_H_ |
#define XFA_FWL_BASEWIDGET_FWL_CARETIMP_H_ |
+#include <memory> |
+ |
#include "xfa/fwl/core/fwl_widgetimp.h" |
#include "xfa/fwl/core/ifwl_timer.h" |
#include "xfa/fwl/core/ifwl_widget.h" |
@@ -51,8 +53,8 @@ class CFWL_CaretImp : public CFWL_WidgetImp { |
IFWL_ThemeProvider* pTheme, |
const CFX_Matrix* pMatrix); |
- CFWL_CaretTimer* m_pTimer; |
- IFWL_TimerInfo* m_pTimerInfo; |
+ std::unique_ptr<CFWL_CaretTimer> m_pTimer; |
+ IFWL_TimerInfo* m_pTimerInfo; // not owned. |
uint32_t m_dwElapse; |
CFX_Color m_crFill; |
FX_BOOL m_bSetColor; |