diff options
author | Tom Sepez <tsepez@chromium.org> | 2017-04-21 16:26:34 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-24 21:17:48 +0000 |
commit | 39b83dd0ce7d828f6a17a2e6529ceb5ffc819207 (patch) | |
tree | a07d9cbab1d8a91407f988a208f8419cfdf5cdb2 /core/fxge/ge/fx_text_int.h | |
parent | ed991c7d9d5bede7e3bb93ff6571512d875716dd (diff) | |
download | pdfium-39b83dd0ce7d828f6a17a2e6529ceb5ffc819207.tar.xz |
Use unique_ptr in CFX_SizeGlyphCache
Fix illegal leading underscore in class name while at it.
Change-Id: Idd138eb42f4a0676552aa02d7dda4c29d1877348
Reviewed-on: https://pdfium-review.googlesource.com/4438
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxge/ge/fx_text_int.h')
-rw-r--r-- | core/fxge/ge/fx_text_int.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/fxge/ge/fx_text_int.h b/core/fxge/ge/fx_text_int.h index 8ea01f91d6..dcd54cead0 100644 --- a/core/fxge/ge/fx_text_int.h +++ b/core/fxge/ge/fx_text_int.h @@ -8,12 +8,14 @@ #define CORE_FXGE_GE_FX_TEXT_INT_H_ #include <map> +#include <memory> #include "core/fxge/fx_font.h" #include "core/fxge/fx_freetype.h" -struct _CFX_UniqueKeyGen { +struct CFX_UniqueKeyGen { void Generate(int count, ...); + char m_Key[128]; int m_KeyLen; }; @@ -22,7 +24,8 @@ class CFX_SizeGlyphCache { public: CFX_SizeGlyphCache(); ~CFX_SizeGlyphCache(); - std::map<uint32_t, CFX_GlyphBitmap*> m_GlyphMap; + + std::map<uint32_t, std::unique_ptr<CFX_GlyphBitmap>> m_GlyphMap; }; #endif // CORE_FXGE_GE_FX_TEXT_INT_H_ |