From 74b147b5747cf65a8936d201b3ed5b32454365cc Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 27 Oct 2015 15:32:01 -0400 Subject: Use static_cast for various CPDF_Object conversions. This Cl converts a bunch of c-style casts to static_cast(). BUG=pdfium:201 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1428583003 . --- core/src/fpdfdoc/doc_form.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/src/fpdfdoc') diff --git a/core/src/fpdfdoc/doc_form.cpp b/core/src/fpdfdoc/doc_form.cpp index 3192445d90..c155b947d9 100644 --- a/core/src/fpdfdoc/doc_form.cpp +++ b/core/src/fpdfdoc/doc_form.cpp @@ -1186,7 +1186,7 @@ CFDF_Document* CPDF_InterForm::ExportToFDF(const CFX_WideStringC& pdf_path, } else { CPDF_FileSpec filespec; filespec.SetFileName(pdf_path); - pMainDict->SetAt("F", (CPDF_Object*)filespec); + pMainDict->SetAt("F", static_cast(filespec)); } } CPDF_Array* pFields = CPDF_Array::Create(); -- cgit v1.2.3