From c2c3f7b5f0396409451a9d344f35ec1929a76e9f Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 14 Aug 2015 14:07:43 -0700 Subject: Use override in more classes in core/ R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1292613003 . --- core/include/fpdfdoc/fpdf_ap.h | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'core/include/fpdfdoc/fpdf_ap.h') diff --git a/core/include/fpdfdoc/fpdf_ap.h b/core/include/fpdfdoc/fpdf_ap.h index 43452fdb47..305834e96a 100644 --- a/core/include/fpdfdoc/fpdf_ap.h +++ b/core/include/fpdfdoc/fpdf_ap.h @@ -51,20 +51,19 @@ struct CPVT_Color { class CPVT_Provider : public IPDF_VariableText_Provider { public: CPVT_Provider(IPVT_FontMap* pFontMap); - - virtual ~CPVT_Provider(); - - int32_t GetCharWidth(int32_t nFontIndex, FX_WORD word, int32_t nWordStyle); - - int32_t GetTypeAscent(int32_t nFontIndex); - - int32_t GetTypeDescent(int32_t nFontIndex); - - int32_t GetWordFontIndex(FX_WORD word, int32_t charset, int32_t nFontIndex); - - FX_BOOL IsLatinWord(FX_WORD word); - - int32_t GetDefaultFontIndex(); + ~CPVT_Provider() override; + + // IPDF_VariableText_Provider + int32_t GetCharWidth(int32_t nFontIndex, + FX_WORD word, + int32_t nWordStyle) override; + int32_t GetTypeAscent(int32_t nFontIndex) override; + int32_t GetTypeDescent(int32_t nFontIndex) override; + int32_t GetWordFontIndex(FX_WORD word, + int32_t charset, + int32_t nFontIndex) override; + FX_BOOL IsLatinWord(FX_WORD word) override; + int32_t GetDefaultFontIndex() override; private: IPVT_FontMap* m_pFontMap; -- cgit v1.2.3