diff options
author | Tom Sepez <tsepez@chromium.org> | 2017-04-03 14:53:01 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-03 22:47:24 +0000 |
commit | 7b9d82312413a3cd2dc7422313bb634eaa687a87 (patch) | |
tree | 039fffc7f773e69bce016ed774f57799aa088ac7 /core/fpdfapi/render/cpdf_type3cache.h | |
parent | 05e6a807311df5c3dfc4cafa56b85614f9bae6d3 (diff) | |
download | pdfium-7b9d82312413a3cd2dc7422313bb634eaa687a87.tar.xz |
Use unique_ptr in cpdf_type3cache.h.
Change-Id: Iaea91df0300b55e35cbfd9b3f3389b3e291eae9b
Reviewed-on: https://pdfium-review.googlesource.com/3618
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/render/cpdf_type3cache.h')
-rw-r--r-- | core/fpdfapi/render/cpdf_type3cache.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fpdfapi/render/cpdf_type3cache.h b/core/fpdfapi/render/cpdf_type3cache.h index 0b3cdcbfa4..dc3e91b359 100644 --- a/core/fpdfapi/render/cpdf_type3cache.h +++ b/core/fpdfapi/render/cpdf_type3cache.h @@ -8,6 +8,7 @@ #define CORE_FPDFAPI_RENDER_CPDF_TYPE3CACHE_H_ #include <map> +#include <memory> #include "core/fpdfapi/font/cpdf_type3font.h" #include "core/fxcrt/cfx_retain_ptr.h" @@ -38,7 +39,7 @@ class CPDF_Type3Cache : public CFX_Retainable { float retinaScaleY); CPDF_Type3Font* const m_pFont; - std::map<CFX_ByteString, CPDF_Type3Glyphs*> m_SizeMap; + std::map<CFX_ByteString, std::unique_ptr<CPDF_Type3Glyphs>> m_SizeMap; }; #endif // CORE_FPDFAPI_RENDER_CPDF_TYPE3CACHE_H_ |