From 48ddd86c45b437151d660758befbebec242d407d Mon Sep 17 00:00:00 2001 From: tsepez Date: Mon, 6 Jun 2016 10:51:58 -0700 Subject: Make GetDevFont() return a CFX_Font* instead of void* Then we can remove a bunch of casts. Review-Url: https://codereview.chromium.org/2033243004 --- xfa/fgas/font/fgas_gefont.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfa/fgas/font/fgas_gefont.h') diff --git a/xfa/fgas/font/fgas_gefont.h b/xfa/fgas/font/fgas_gefont.h index 835fe2c11a..c818b6286d 100644 --- a/xfa/fgas/font/fgas_gefont.h +++ b/xfa/fgas/font/fgas_gefont.h @@ -49,7 +49,7 @@ class CFGAS_GEFont : public IFGAS_Font { virtual int32_t GetItalicAngle() const; virtual void Reset(); virtual IFGAS_Font* GetSubstFont(int32_t iGlyphIndex) const; - virtual void* GetDevFont() const { return (void*)m_pFont; } + virtual CFX_Font* GetDevFont() const { return m_pFont; } virtual void SetFontProvider(CXFA_PDFFontMgr* pProvider) { m_pProvider = pProvider; } -- cgit v1.2.3