Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(241)

Unified Diff: xfa/src/fwl/src/basewidget/include/fwl_editimp.h

Issue 1509203002: FWL refcounts never incremented (part 1) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: protected Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: xfa/src/fwl/src/basewidget/include/fwl_editimp.h
diff --git a/xfa/src/fwl/src/basewidget/include/fwl_editimp.h b/xfa/src/fwl/src/basewidget/include/fwl_editimp.h
index 00008569636c434ac00b288cba9888fa50702cc8..486e47c3fde84e69c8a2adb4ef9a3e2b1b9e63cf 100644
--- a/xfa/src/fwl/src/basewidget/include/fwl_editimp.h
+++ b/xfa/src/fwl/src/basewidget/include/fwl_editimp.h
@@ -6,6 +6,9 @@
#ifndef _FWL_EDIT_IMP_H
#define _FWL_EDIT_IMP_H
+
+#include "third_party/base/nonstd_unique_ptr.h"
+
class CFWL_WidgetImp;
class CFWL_WidgetImpProperties;
class CFWL_WidgetImpDelegate;
@@ -163,10 +166,9 @@ class CFWL_EditImp : public CFWL_WidgetImp, public IFDE_TxtEdtEventSink {
FX_BOOL m_bSetRange;
int32_t m_iMin;
int32_t m_iMax;
- IFWL_ScrollBar* m_pVertScrollBar;
- IFWL_ScrollBar* m_pHorzScrollBar;
- IFWL_Caret* m_pCaret;
- IFWL_AdapterTextField* m_pTextField;
+ nonstd::unique_ptr<IFWL_ScrollBar> m_pVertScrollBar;
+ nonstd::unique_ptr<IFWL_ScrollBar> m_pHorzScrollBar;
+ nonstd::unique_ptr<IFWL_Caret> m_pCaret;
CFX_WideString m_wsCache;
friend class CFWL_TxtEdtEventSink;
friend class CFWL_EditImpDelegate;
« no previous file with comments | « xfa/src/fwl/src/basewidget/include/fwl_datetimepickerimp.h ('k') | xfa/src/fwl/src/basewidget/include/fwl_listboximp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698