From 39b83dd0ce7d828f6a17a2e6529ceb5ffc819207 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Fri, 21 Apr 2017 16:26:34 -0700 Subject: 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 Commit-Queue: Tom Sepez --- core/fxge/ge/fx_ge_text.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'core/fxge/ge/fx_ge_text.cpp') 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& 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++) { -- cgit v1.2.3