From 1b4f6b36b3ed8d1f6cea96bc32c1b376f4a499bc Mon Sep 17 00:00:00 2001 From: weili Date: Thu, 4 Aug 2016 16:37:48 -0700 Subject: Use smart pointers for class owned pointers For classes under xfa/fgas, xfa/fwl/basewidget, and xfa/fwl/core, use smart pointers instead of raw pointer to make memory management easier. BUG=pdfium:518 Review-Url: https://codereview.chromium.org/2207093005 --- xfa/fwl/core/fwl_noteimp.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xfa/fwl/core/fwl_noteimp.h') diff --git a/xfa/fwl/core/fwl_noteimp.h b/xfa/fwl/core/fwl_noteimp.h index c92395a13a..f923c395d5 100644 --- a/xfa/fwl/core/fwl_noteimp.h +++ b/xfa/fwl/core/fwl_noteimp.h @@ -7,6 +7,7 @@ #ifndef XFA_FWL_CORE_FWL_NOTEIMP_H_ #define XFA_FWL_CORE_FWL_NOTEIMP_H_ +#include #include #include "xfa/fwl/core/cfwl_event.h" @@ -115,7 +116,7 @@ class CFWL_NoteDriver { IFWL_Widget* m_pHover; IFWL_Widget* m_pFocus; IFWL_Widget* m_pGrab; - CFWL_NoteLoop* m_pNoteLoop; + std::unique_ptr m_pNoteLoop; }; class CFWL_EventTarget { @@ -147,7 +148,7 @@ class CFWL_ToolTipContainer final { ~CFWL_ToolTipContainer(); CFWL_ToolTipImp* m_pToolTipImp; - CFWL_CoreToolTipDP* m_ToolTipDp; + std::unique_ptr m_pToolTipDp; private: static CFWL_ToolTipContainer* s_pInstance; -- cgit v1.2.3