diff options
author | Nicolas Pena <npm@chromium.org> | 2017-05-17 17:23:22 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-17 21:40:41 +0000 |
commit | 46abb66cb57d4bc6b9326efd7a0c0e776e594db2 (patch) | |
tree | d0e3b8bada3ff24ac3cff44f4ae0ed990232448d /fpdfsdk/fpdfformfill.cpp | |
parent | 26853181af1b28ba8070b955d90fb7a17fec2713 (diff) | |
download | pdfium-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/fpdfformfill.cpp')
-rw-r--r-- | fpdfsdk/fpdfformfill.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/fpdfformfill.cpp b/fpdfsdk/fpdfformfill.cpp index a466e73abb..121e1a9c8e 100644 --- a/fpdfsdk/fpdfformfill.cpp +++ b/fpdfsdk/fpdfformfill.cpp @@ -67,11 +67,11 @@ CPDFSDK_PageView* FormHandleToPageView(FPDF_FORMHANDLE hHandle, #ifdef PDF_ENABLE_XFA std::vector<CFX_ByteString>* FromFPDFStringHandle(FPDF_STRINGHANDLE handle) { - return reinterpret_cast<std::vector<CFX_ByteString>*>(handle); + return static_cast<std::vector<CFX_ByteString>*>(handle); } FPDF_STRINGHANDLE ToFPDFStringHandle(std::vector<CFX_ByteString>* strings) { - return reinterpret_cast<FPDF_STRINGHANDLE>(strings); + return static_cast<FPDF_STRINGHANDLE>(strings); } #endif // PDF_ENABLE_XFA |