From b8768b7ca3379d0cd25fddf87799458e39ac5477 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 4 Oct 2018 22:14:52 +0000 Subject: Make some CPWL_FontMap methods pure virtual. We never instantiate this class by itself, and these don't get called. Change-Id: Ibff1e57c93c346d038c5f9f508b601ef919a6895 Reviewed-on: https://pdfium-review.googlesource.com/c/43475 Reviewed-by: Lei Zhang Commit-Queue: Tom Sepez --- fpdfsdk/pwl/cpwl_font_map.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'fpdfsdk/pwl/cpwl_font_map.h') diff --git a/fpdfsdk/pwl/cpwl_font_map.h b/fpdfsdk/pwl/cpwl_font_map.h index 159bd7ff56..c9c7fff3fc 100644 --- a/fpdfsdk/pwl/cpwl_font_map.h +++ b/fpdfsdk/pwl/cpwl_font_map.h @@ -48,10 +48,10 @@ class CPWL_FontMap : public IPVT_FontMap { protected: virtual void Initialize(); - virtual CPDF_Document* GetDocument(); + virtual CPDF_Document* GetDocument() = 0; virtual CPDF_Font* FindFontSameCharset(ByteString* sFontAlias, - int32_t nCharset); - virtual void AddedFont(CPDF_Font* pFont, const ByteString& sFontAlias); + int32_t nCharset) = 0; + virtual void AddedFont(CPDF_Font* pFont, const ByteString& sFontAlias) = 0; bool KnowWord(int32_t nFontIndex, uint16_t word); @@ -81,7 +81,6 @@ class CPWL_FontMap : public IPVT_FontMap { ByteString& sFontName, uint8_t nCharset); - std::unique_ptr m_pPDFDoc; UnownedPtr const m_pSystemHandler; }; -- cgit v1.2.3