diff options
author | tsepez <tsepez@chromium.org> | 2016-09-23 07:26:29 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-23 07:26:29 -0700 |
commit | 3f4111fbff1233de9f5c67eda433bee0f5f88c4e (patch) | |
tree | 5cb30b258413915f8b800c871d235c123df1ad95 /core/fpdfapi/fpdf_font/include | |
parent | 917d24852841f4919f418076c0277d2742f961ca (diff) | |
download | pdfium-3f4111fbff1233de9f5c67eda433bee0f5f88c4e.tar.xz |
Make CPDF_Font::Create() return a std::unique_ptr.
Review-Url: https://codereview.chromium.org/2364643003
Diffstat (limited to 'core/fpdfapi/fpdf_font/include')
-rw-r--r-- | core/fpdfapi/fpdf_font/include/cpdf_font.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfapi/fpdf_font/include/cpdf_font.h b/core/fpdfapi/fpdf_font/include/cpdf_font.h index a47d8655c2..eb91524320 100644 --- a/core/fpdfapi/fpdf_font/include/cpdf_font.h +++ b/core/fpdfapi/fpdf_font/include/cpdf_font.h @@ -38,8 +38,8 @@ class CPDF_ToUnicodeMap; class CPDF_Font { public: - static CPDF_Font* CreateFontF(CPDF_Document* pDoc, - CPDF_Dictionary* pFontDict); + static std::unique_ptr<CPDF_Font> Create(CPDF_Document* pDoc, + CPDF_Dictionary* pFontDict); static CPDF_Font* GetStockFont(CPDF_Document* pDoc, const CFX_ByteStringC& fontname); static const uint32_t kInvalidCharCode = static_cast<uint32_t>(-1); |