Index: fpdfsdk/pdfwindow/PWL_Wnd.h |
diff --git a/fpdfsdk/pdfwindow/PWL_Wnd.h b/fpdfsdk/pdfwindow/PWL_Wnd.h |
index 3dfaf5afda95cd4b66684f1887280719ce1d9a3b..de48a8c82df5d5f6bc310f7cbf8f5c334bbbc7d2 100644 |
--- a/fpdfsdk/pdfwindow/PWL_Wnd.h |
+++ b/fpdfsdk/pdfwindow/PWL_Wnd.h |
@@ -7,6 +7,7 @@ |
#ifndef FPDFSDK_PDFWINDOW_PWL_WND_H_ |
#define FPDFSDK_PDFWINDOW_PWL_WND_H_ |
+#include <memory> |
#include <vector> |
#include "core/fpdfdoc/include/cpdf_formcontrol.h" |
@@ -238,7 +239,7 @@ class CPWL_TimerHandler { |
virtual CFX_SystemHandler* GetSystemHandler() const = 0; |
private: |
- CPWL_Timer* m_pTimer; |
+ std::unique_ptr<CPWL_Timer> m_pTimer; |
}; |
class CPWL_Wnd : public CPWL_TimerHandler { |