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/apple | |
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/apple')
-rw-r--r-- | core/fxge/apple/fx_apple_platform.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/fxge/apple/fx_apple_platform.cpp b/core/fxge/apple/fx_apple_platform.cpp index 818e19e7d4..1a56b183cf 100644 --- a/core/fxge/apple/fx_apple_platform.cpp +++ b/core/fxge/apple/fx_apple_platform.cpp @@ -4,6 +4,8 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com +#include <memory> + #include "core/fxcrt/fx_system.h" #ifndef _SKIA_SUPPORT_ @@ -162,7 +164,7 @@ void CFX_FaceCache::InitPlatform() {} void CFX_FaceCache::DestroyPlatform() {} -CFX_GlyphBitmap* CFX_FaceCache::RenderGlyph_Nativetext( +std::unique_ptr<CFX_GlyphBitmap> CFX_FaceCache::RenderGlyph_Nativetext( const CFX_Font* pFont, uint32_t glyph_index, const CFX_Matrix* pMatrix, |