summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdf_sysfontinfo.cpp
diff options
context:
space:
mode:
authorNicolas Pena <npm@chromium.org>2017-05-17 17:23:22 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-05-17 21:40:41 +0000
commit46abb66cb57d4bc6b9326efd7a0c0e776e594db2 (patch)
treed0e3b8bada3ff24ac3cff44f4ae0ed990232448d /fpdfsdk/fpdf_sysfontinfo.cpp
parent26853181af1b28ba8070b955d90fb7a17fec2713 (diff)
downloadpdfium-46abb66cb57d4bc6b9326efd7a0c0e776e594db2.tar.xz
Use more static_cast in fpdfsdk
This CL replaces some reinterpret_cast with static_cast in fpdfsdk. It also removes an obsolete comment in fpdfedit.h Change-Id: I36c29bfcd6382490a8c955b50ccfa4c93ab351c7 Reviewed-on: https://pdfium-review.googlesource.com/5632 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdf_sysfontinfo.cpp')
-rw-r--r--fpdfsdk/fpdf_sysfontinfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/fpdf_sysfontinfo.cpp b/fpdfsdk/fpdf_sysfontinfo.cpp
index 1b98b94358..1f73887532 100644
--- a/fpdfsdk/fpdf_sysfontinfo.cpp
+++ b/fpdfsdk/fpdf_sysfontinfo.cpp
@@ -106,7 +106,7 @@ class CFX_ExternalFontInfo final : public IFX_SystemFontInfo {
DLLEXPORT void STDCALL FPDF_AddInstalledFont(void* mapper,
const char* name,
int charset) {
- CFX_FontMapper* pMapper = reinterpret_cast<CFX_FontMapper*>(mapper);
+ CFX_FontMapper* pMapper = static_cast<CFX_FontMapper*>(mapper);
pMapper->AddInstalledFont(name, charset);
}