From 46abb66cb57d4bc6b9326efd7a0c0e776e594db2 Mon Sep 17 00:00:00 2001 From: Nicolas Pena Date: Wed, 17 May 2017 17:23:22 -0400 Subject: Use more static_cast in fpdfsdk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Commit-Queue: Nicolás Peña --- fpdfsdk/fpdfformfill.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fpdfsdk/fpdfformfill.cpp') 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* FromFPDFStringHandle(FPDF_STRINGHANDLE handle) { - return reinterpret_cast*>(handle); + return static_cast*>(handle); } FPDF_STRINGHANDLE ToFPDFStringHandle(std::vector* strings) { - return reinterpret_cast(strings); + return static_cast(strings); } #endif // PDF_ENABLE_XFA -- cgit v1.2.3