summaryrefslogtreecommitdiff
path: root/fpdfsdk/cfx_systemhandler.h
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-06-21 14:38:27 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-21 14:38:28 -0700
commit907a5223ea5abd09878de20cc74c59ebd0d6c3c8 (patch)
tree7dba8b090eda4f65da57d1979bdb02cedd273055 /fpdfsdk/cfx_systemhandler.h
parent56a8b1944d555ed65dda97164b702a9a657485ca (diff)
downloadpdfium-907a5223ea5abd09878de20cc74c59ebd0d6c3c8.tar.xz
Use FXFONT defines in place of integers.
Fix nits along the way. Review-Url: https://codereview.chromium.org/2083943003
Diffstat (limited to 'fpdfsdk/cfx_systemhandler.h')
-rw-r--r--fpdfsdk/cfx_systemhandler.h9
1 files changed, 2 insertions, 7 deletions
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_