diff options
author | Tom Sepez <tsepez@chromium.org> | 2017-04-21 13:10:34 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-21 20:55:15 +0000 |
commit | 0748d3cb67926bfd38d3d67901fdda87109c6895 (patch) | |
tree | 36a6934a9ee51edf8032c3579580ba2f281be71a /core/fpdfapi/render/cpdf_type3glyphs.h | |
parent | e150045e9d1944b654b600c0d77f924ee0c5032d (diff) | |
download | pdfium-0748d3cb67926bfd38d3d67901fdda87109c6895.tar.xz |
Return unique_ptr from CPDF_Type3Cache::RenderGlyph().
Change-Id: I0701c6e5a9c1789f5fe929778df0e2aa55d8bf00
Reviewed-on: https://pdfium-review.googlesource.com/4434
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/render/cpdf_type3glyphs.h')
-rw-r--r-- | core/fpdfapi/render/cpdf_type3glyphs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fpdfapi/render/cpdf_type3glyphs.h b/core/fpdfapi/render/cpdf_type3glyphs.h index 443910dac0..778b639642 100644 --- a/core/fpdfapi/render/cpdf_type3glyphs.h +++ b/core/fpdfapi/render/cpdf_type3glyphs.h @@ -8,6 +8,7 @@ #define CORE_FPDFAPI_RENDER_CPDF_TYPE3GLYPHS_H_ #include <map> +#include <memory> #include "core/fxcrt/fx_system.h" @@ -22,7 +23,7 @@ class CPDF_Type3Glyphs { void AdjustBlue(float top, float bottom, int& top_line, int& bottom_line); - std::map<uint32_t, CFX_GlyphBitmap*> m_GlyphMap; + std::map<uint32_t, std::unique_ptr<CFX_GlyphBitmap>> m_GlyphMap; int m_TopBlue[TYPE3_MAX_BLUES]; int m_BottomBlue[TYPE3_MAX_BLUES]; int m_TopBlueCount; |