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 /xfa/fxfa/cxfa_ffdoc.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 'xfa/fxfa/cxfa_ffdoc.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_ffdoc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxfa/cxfa_ffdoc.cpp b/xfa/fxfa/cxfa_ffdoc.cpp index 31e9e3df76..3d06c7df27 100644 --- a/xfa/fxfa/cxfa_ffdoc.cpp +++ b/xfa/fxfa/cxfa_ffdoc.cpp @@ -46,7 +46,7 @@ CXFA_FFDoc::~CXFA_FFDoc() { bool CXFA_FFDoc::ParseDoc(CPDF_Object* pElementXFA) { std::vector<CPDF_Stream*> xfaStreams; if (pElementXFA->IsArray()) { - CPDF_Array* pXFAArray = (CPDF_Array*)pElementXFA; + CPDF_Array* pXFAArray = pElementXFA->AsArray(); for (size_t i = 0; i < pXFAArray->GetCount() / 2; i++) { if (CPDF_Stream* pStream = pXFAArray->GetStreamAt(i * 2 + 1)) xfaStreams.push_back(pStream); |