diff options
author | tsepez <tsepez@chromium.org> | 2017-01-04 10:09:45 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2017-01-04 10:09:45 -0800 |
commit | 6745f96fab41e2b46f57a3717b034a4064c0de02 (patch) | |
tree | ad3d8df2b200d99c6c32ea0ddd7e0ce53118c641 /fpdfsdk/pdfwindow/PWL_FontMap.h | |
parent | fff400a5df032c2203eef9f76a5dbb164672df3d (diff) | |
download | pdfium-6745f96fab41e2b46f57a3717b034a4064c0de02.tar.xz |
Remove CFX_ArrayTemplate, use unique_ptr in fpdfsdk/pdfwindow
Review-Url: https://codereview.chromium.org/2594153003
Diffstat (limited to 'fpdfsdk/pdfwindow/PWL_FontMap.h')
-rw-r--r-- | fpdfsdk/pdfwindow/PWL_FontMap.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fpdfsdk/pdfwindow/PWL_FontMap.h b/fpdfsdk/pdfwindow/PWL_FontMap.h index 47ef193619..c14fcd7cd3 100644 --- a/fpdfsdk/pdfwindow/PWL_FontMap.h +++ b/fpdfsdk/pdfwindow/PWL_FontMap.h @@ -8,6 +8,7 @@ #define FPDFSDK_PDFWINDOW_PWL_FONTMAP_H_ #include <memory> +#include <vector> #include "core/fpdfdoc/ipvt_fontmap.h" #include "core/fxge/fx_font.h" @@ -70,8 +71,8 @@ class CPWL_FontMap : public IPVT_FontMap { int32_t nCharset); CFX_ByteString EncodeFontAlias(const CFX_ByteString& sFontName); - CFX_ArrayTemplate<CPWL_FontMap_Data*> m_aData; - CFX_ArrayTemplate<CPWL_FontMap_Native*> m_aNativeFont; + std::vector<std::unique_ptr<CPWL_FontMap_Data>> m_Data; + std::vector<std::unique_ptr<CPWL_FontMap_Native>> m_NativeFont; private: int32_t FindFont(const CFX_ByteString& sFontName, |