From 14e77443e92ce3fdf1cebe85f8f5c8fe705a1558 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 12 Jan 2018 21:21:51 +0000 Subject: Move some RetainPtr getters/setters out of headers. RetainPtr operations are not trivial. Change-Id: Ic106ada69d1c023a8132a2a59db17d550fd81fa0 Reviewed-on: https://pdfium-review.googlesource.com/22911 Reviewed-by: Tom Sepez Commit-Queue: Lei Zhang --- core/fxge/cfx_font.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'core/fxge/cfx_font.h') diff --git a/core/fxge/cfx_font.h b/core/fxge/cfx_font.h index 13cb892c19..c8c4cf7a5f 100644 --- a/core/fxge/cfx_font.h +++ b/core/fxge/cfx_font.h @@ -8,7 +8,6 @@ #define CORE_FXGE_CFX_FONT_H_ #include -#include #include #include "core/fxcrt/bytestring.h" @@ -47,9 +46,7 @@ class CFX_Font { bool LoadFile(const RetainPtr& pFile, int nFaceIndex); void SetFace(FXFT_Face face); - void SetSubstFont(std::unique_ptr subst) { - m_pSubstFont = std::move(subst); - } + void SetSubstFont(std::unique_ptr subst); #endif // PDF_ENABLE_XFA const CFX_GlyphBitmap* LoadGlyphBitmap(uint32_t glyph_index, -- cgit v1.2.3