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_ge_text.cpp | |
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_ge_text.cpp')
-rw-r--r-- | core/fxge/ge/fx_ge_text.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/core/fxge/ge/fx_ge_text.cpp b/core/fxge/ge/fx_ge_text.cpp index b451b543fc..8024452265 100644 --- a/core/fxge/ge/fx_ge_text.cpp +++ b/core/fxge/ge/fx_ge_text.cpp @@ -107,14 +107,9 @@ FX_RECT FXGE_GetGlyphsBBox(const std::vector<FXTEXT_GLYPHPOS>& glyphs, CFX_SizeGlyphCache::CFX_SizeGlyphCache() {} -CFX_SizeGlyphCache::~CFX_SizeGlyphCache() { - for (const auto& pair : m_GlyphMap) { - delete pair.second; - } - m_GlyphMap.clear(); -} +CFX_SizeGlyphCache::~CFX_SizeGlyphCache() {} -void _CFX_UniqueKeyGen::Generate(int count, ...) { +void CFX_UniqueKeyGen::Generate(int count, ...) { va_list argList; va_start(argList, count); for (int i = 0; i < count; i++) { |