summaryrefslogtreecommitdiff
path: root/core/fxge/cfx_fontmgr.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-04-21 15:54:37 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-04-21 23:05:40 +0000
commit350d2d904a3e6bd1e96542c5e223d301d9bdbe6a (patch)
tree3c8db80e8f718155d55180870be9fb17e47f31d4 /core/fxge/cfx_fontmgr.h
parent1629f609d3722f25491bbbb53b2cce97a03a5867 (diff)
downloadpdfium-350d2d904a3e6bd1e96542c5e223d301d9bdbe6a.tar.xz
Use unique_ptr in CFX_FontMgr::m_FaceMap.
Change-Id: Ie34942e6e577dfa270417b17c59a51813f310d27 Reviewed-on: https://pdfium-review.googlesource.com/4436 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxge/cfx_fontmgr.h')
-rw-r--r--core/fxge/cfx_fontmgr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxge/cfx_fontmgr.h b/core/fxge/cfx_fontmgr.h
index b7f2e1a032..7ccad807df 100644
--- a/core/fxge/cfx_fontmgr.h
+++ b/core/fxge/cfx_fontmgr.h
@@ -61,7 +61,7 @@ class CFX_FontMgr {
private:
std::unique_ptr<CFX_FontMapper> m_pBuiltinMapper;
- std::map<CFX_ByteString, CTTFontDesc*> m_FaceMap;
+ std::map<CFX_ByteString, std::unique_ptr<CTTFontDesc>> m_FaceMap;
FXFT_Library m_FTLibrary;
bool m_FTLibrarySupportsHinting;
};