From 907a5223ea5abd09878de20cc74c59ebd0d6c3c8 Mon Sep 17 00:00:00 2001 From: thestig Date: Tue, 21 Jun 2016 14:38:27 -0700 Subject: Use FXFONT defines in place of integers. Fix nits along the way. Review-Url: https://codereview.chromium.org/2083943003 --- fpdfsdk/cfx_systemhandler.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'fpdfsdk/cfx_systemhandler.h') diff --git a/fpdfsdk/cfx_systemhandler.h b/fpdfsdk/cfx_systemhandler.h index e77120adef..76da223310 100644 --- a/fpdfsdk/cfx_systemhandler.h +++ b/fpdfsdk/cfx_systemhandler.h @@ -49,8 +49,7 @@ class CPDFDoc_Environment; class CFX_SystemHandler { public: - explicit CFX_SystemHandler(CPDFDoc_Environment* pEnv) - : m_pEnv(pEnv), m_nCharSet(-1) {} + explicit CFX_SystemHandler(CPDFDoc_Environment* pEnv) : m_pEnv(pEnv) {} ~CFX_SystemHandler() {} void InvalidateRect(FX_HWND hWnd, FX_RECT rect); @@ -59,7 +58,7 @@ class CFX_SystemHandler { void SetCursor(int32_t nCursorType); - bool FindNativeTrueTypeFont(int32_t nCharset, CFX_ByteString sFontFaceName); + bool FindNativeTrueTypeFont(CFX_ByteString sFontFaceName); CPDF_Font* AddNativeTrueTypeFontToPDF(CPDF_Document* pDoc, CFX_ByteString sFontFaceName, uint8_t nCharset); @@ -71,12 +70,8 @@ class CFX_SystemHandler { FX_SYSTEMTIME GetLocalTime(); - int32_t GetCharSet() const { return m_nCharSet; } - void SetCharSet(int32_t nCharSet) { m_nCharSet = nCharSet; } - private: CPDFDoc_Environment* const m_pEnv; - int m_nCharSet; }; #endif // FPDFSDK_CFX_SYSTEMHANDLER_H_ -- cgit v1.2.3