diff options
author | tsepez <tsepez@chromium.org> | 2017-01-10 13:40:26 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2017-01-10 13:40:26 -0800 |
commit | 6c0c48227aa024aa6e188ed7adf4d7c3d410cff9 (patch) | |
tree | 92868db030219d25fd74c75a77893c8ddf8d0048 /core/fxge/win32/cfx_psrenderer.h | |
parent | 29a9f87a8bcd1b6913bb070c5a1514af41fab3ef (diff) | |
download | pdfium-6c0c48227aa024aa6e188ed7adf4d7c3d410cff9.tar.xz |
Remove CFX_ArrayTemplate in cfx_psrender.
Use unique_ptr while we're at it.
Review-Url: https://codereview.chromium.org/2618373003
Diffstat (limited to 'core/fxge/win32/cfx_psrenderer.h')
-rw-r--r-- | core/fxge/win32/cfx_psrenderer.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/fxge/win32/cfx_psrenderer.h b/core/fxge/win32/cfx_psrenderer.h index c70708a5a4..e941739f44 100644 --- a/core/fxge/win32/cfx_psrenderer.h +++ b/core/fxge/win32/cfx_psrenderer.h @@ -7,6 +7,9 @@ #ifndef CORE_FXGE_WIN32_CFX_PSRENDERER_H_ #define CORE_FXGE_WIN32_CFX_PSRENDERER_H_ +#include <memory> +#include <vector> + #include "core/fxcrt/fx_coordinates.h" #include "core/fxcrt/fx_system.h" #include "core/fxge/cfx_graphstatedata.h" @@ -90,8 +93,8 @@ class CFX_PSRenderer { bool m_bColorSet; uint32_t m_LastColor; FX_RECT m_ClipBox; - CFX_ArrayTemplate<CPSFont*> m_PSFontList; - CFX_ArrayTemplate<FX_RECT> m_ClipBoxStack; + std::vector<std::unique_ptr<CPSFont>> m_PSFontList; + std::vector<FX_RECT> m_ClipBoxStack; bool m_bInited; }; |