diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-04-26 18:33:58 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-26 18:33:58 +0000 |
commit | ea3a2529a7aa0199b385b7caa2e465c124eac8aa (patch) | |
tree | cf8beb27054209ef2b71222c3cdc81bd39192651 /fpdfsdk/fpdf_text.cpp | |
parent | f9666864254bf84ef878630bbdaaaabbecab8ba5 (diff) | |
download | pdfium-ea3a2529a7aa0199b385b7caa2e465c124eac8aa.tar.xz |
Replace some c-style cast with static_cast<>
Change-Id: I9dd6a36770f77f3df6c4395572785d37402eadc2
Reviewed-on: https://pdfium-review.googlesource.com/31350
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdf_text.cpp')
-rw-r--r-- | fpdfsdk/fpdf_text.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/fpdf_text.cpp b/fpdfsdk/fpdf_text.cpp index c5906acef0..dade84a005 100644 --- a/fpdfsdk/fpdf_text.cpp +++ b/fpdfsdk/fpdf_text.cpp @@ -51,7 +51,7 @@ FPDF_EXPORT FPDF_TEXTPAGE FPDF_CALLCONV FPDFText_LoadPage(FPDF_PAGE page) { return nullptr; #ifdef PDF_ENABLE_XFA - CPDFXFA_Page* pPage = (CPDFXFA_Page*)page; + CPDFXFA_Page* pPage = UnderlyingFromFPDFPage(page); CPDFXFA_Context* pContext = pPage->GetContext(); CPDF_ViewerPreferences viewRef(pContext->GetPDFDoc()); #else // PDF_ENABLE_XFA |