diff options
author | Tom Sepez <tsepez@chromium.org> | 2017-01-30 14:26:24 -0800 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-01-31 01:34:14 +0000 |
commit | 576e8151efab01166142ec697b66ce38b7bf6780 (patch) | |
tree | 3a5407e99f885419081e673726ece94b155e2d1c /xfa/fwl/cfwl_monthcalendar.h | |
parent | 3509d16d3f3538867c42689b2353cb394c1fd97b (diff) | |
download | pdfium-576e8151efab01166142ec697b66ce38b7bf6780.tar.xz |
Use std::vector and unique_ptr in xfa/fwl.
Change-Id: I21aeb1df387b60330d87a6cc82c615878c1f5596
Reviewed-on: https://pdfium-review.googlesource.com/2457
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fwl/cfwl_monthcalendar.h')
-rw-r--r-- | xfa/fwl/cfwl_monthcalendar.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xfa/fwl/cfwl_monthcalendar.h b/xfa/fwl/cfwl_monthcalendar.h index 6c1d0d9246..245663cf5e 100644 --- a/xfa/fwl/cfwl_monthcalendar.h +++ b/xfa/fwl/cfwl_monthcalendar.h @@ -8,6 +8,7 @@ #define XFA_FWL_CFWL_MONTHCALENDAR_H_ #include <memory> +#include <vector> #include "xfa/fgas/localization/fgas_datetime.h" #include "xfa/fwl/cfwl_event.h" @@ -165,7 +166,7 @@ class CFWL_MonthCalendar : public CFWL_Widget { CFX_WideString m_wsHead; CFX_WideString m_wsToday; std::unique_ptr<CFX_DateTime> m_pDateTime; - CFX_ArrayTemplate<DATEINFO*> m_arrDates; + std::vector<std::unique_ptr<DATEINFO>> m_arrDates; int32_t m_iCurYear; int32_t m_iCurMonth; int32_t m_iYear; @@ -179,7 +180,7 @@ class CFWL_MonthCalendar : public CFWL_Widget { CFX_SizeF m_szHead; CFX_SizeF m_szCell; CFX_SizeF m_szToday; - CFX_ArrayTemplate<int32_t> m_arrSelDays; + std::vector<int32_t> m_arrSelDays; CFX_RectF m_rtClient; bool m_bFlag; }; |