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

Unified Diff: xfa/src/fwl/src/basewidget/include/fwl_datetimepickerimp.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_datetimepickerimp.h
diff --git a/xfa/src/fwl/src/basewidget/include/fwl_datetimepickerimp.h b/xfa/src/fwl/src/basewidget/include/fwl_datetimepickerimp.h
index 5048601d0ee25928254ff8dafa496913b9eade20..68eb898a634298a168c5c8da69b29136098c3257 100644
--- a/xfa/src/fwl/src/basewidget/include/fwl_datetimepickerimp.h
+++ b/xfa/src/fwl/src/basewidget/include/fwl_datetimepickerimp.h
@@ -6,6 +6,9 @@
#ifndef _FWL_DATETIMEPICKER_IMP_H
#define _FWL_DATETIMEPICKER_IMP_H
+
+#include "third_party/base/nonstd_unique_ptr.h"
+
class CFWL_WidgetImp;
class CFWL_WidgetImpProperties;
class CFWL_WidgetImpDelegate;
@@ -164,9 +167,9 @@ class CFWL_DateTimePickerImp : public CFWL_WidgetImp {
int32_t m_iMonth;
int32_t m_iDay;
FX_BOOL m_bLBtnDown;
- IFWL_DateTimeEdit* m_pEdit;
- IFWL_DateTimeCalender* m_pMonthCal;
- IFWL_DateTimeForm* m_pForm;
+ nonstd::unique_ptr<IFWL_DateTimeEdit> m_pEdit;
+ nonstd::unique_ptr<IFWL_DateTimeCalender> m_pMonthCal;
+ nonstd::unique_ptr<IFWL_DateTimeForm> m_pForm;
FX_FLOAT m_fBtn;
class CFWL_MonthCalendarImpDP : public IFWL_MonthCalendarDP {
public:
« no previous file with comments | « xfa/src/fwl/src/basewidget/include/fwl_comboboximp.h ('k') | xfa/src/fwl/src/basewidget/include/fwl_editimp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698