Chromium Code Reviews| Index: fpdfsdk/formfiller/cffl_iformfiller.h |
| diff --git a/fpdfsdk/formfiller/cffl_iformfiller.h b/fpdfsdk/formfiller/cffl_iformfiller.h |
| index b01159475ae004e1f44d1e17c29f38ac758b8053..28eb733922a00c3cbf315da86930b9dfee339232 100644 |
| --- a/fpdfsdk/formfiller/cffl_iformfiller.h |
| +++ b/fpdfsdk/formfiller/cffl_iformfiller.h |
| @@ -7,6 +7,7 @@ |
| #ifndef FPDFSDK_FORMFILLER_CFFL_IFORMFILLER_H_ |
| #define FPDFSDK_FORMFILLER_CFFL_IFORMFILLER_H_ |
| +#include <memory> |
|
Lei Zhang
2016/08/02 22:54:00
alphabetical order
Wei Li
2016/08/03 17:54:47
Done.
|
| #include <map> |
| #include "fpdfsdk/include/fsdk_define.h" |
| @@ -140,7 +141,8 @@ class CFFL_IFormFiller : public IPWL_Filler_Notify { |
| #endif // PDF_ENABLE_XFA |
| private: |
| - using CFFL_Widget2Filler = std::map<CPDFSDK_Annot*, CFFL_FormFiller*>; |
| + using CFFL_Widget2Filler = |
| + std::map<CPDFSDK_Annot*, std::unique_ptr<CFFL_FormFiller>>; |
| // IPWL_Filler_Notify: |
| void QueryWherePopup(void* pPrivateData, |
| @@ -170,7 +172,7 @@ class CFFL_IFormFiller : public IPWL_Filler_Notify { |
| #endif // PDF_ENABLE_XFA |
| void UnRegisterFormFiller(CPDFSDK_Annot* pAnnot); |
| - CPDFDoc_Environment* m_pApp; |
| + CPDFDoc_Environment* const m_pApp; |
| CFFL_Widget2Filler m_Maps; |
| FX_BOOL m_bNotifying; |
| }; |