diff options
author | weili <weili@chromium.org> | 2016-08-04 16:37:48 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-04 16:37:48 -0700 |
commit | 1b4f6b36b3ed8d1f6cea96bc32c1b376f4a499bc (patch) | |
tree | aa3ba6730495096411f2a3555c74e83f5d1fca11 /xfa/fwl/core/fwl_formimp.h | |
parent | 52a5005c453a9e08384e375ae51c5f1ad628fe86 (diff) | |
download | pdfium-1b4f6b36b3ed8d1f6cea96bc32c1b376f4a499bc.tar.xz |
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
Diffstat (limited to 'xfa/fwl/core/fwl_formimp.h')
-rw-r--r-- | xfa/fwl/core/fwl_formimp.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xfa/fwl/core/fwl_formimp.h b/xfa/fwl/core/fwl_formimp.h index ee1507d17e..c88b5e683b 100644 --- a/xfa/fwl/core/fwl_formimp.h +++ b/xfa/fwl/core/fwl_formimp.h @@ -7,6 +7,8 @@ #ifndef XFA_FWL_CORE_FWL_FORMIMP_H_ #define XFA_FWL_CORE_FWL_FORMIMP_H_ +#include <memory> + #include "xfa/fwl/core/fwl_widgetimp.h" #include "xfa/fwl/core/ifwl_form.h" @@ -134,7 +136,7 @@ class CFWL_FormImp : public CFWL_WidgetImp { CFWL_SysBtn* m_pMinBox; CFWL_SysBtn* m_pMaxBox; CFWL_SysBtn* m_pCaptionBox; - CFWL_NoteLoop* m_pNoteLoop; + std::unique_ptr<CFWL_NoteLoop> m_pNoteLoop; CFWL_WidgetImp* m_pSubFocus; RestoreInfo m_InfoStart; FX_FLOAT m_fCXBorder; |