summaryrefslogtreecommitdiff
path: root/fpdfsdk
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2015-10-27 15:32:01 -0400
committerDan Sinclair <dsinclair@chromium.org>2015-10-27 15:32:01 -0400
commit74b147b5747cf65a8936d201b3ed5b32454365cc (patch)
tree607d39c9a1da7f7910cdf5c832350540733b2549 /fpdfsdk
parent468974316ed5f6b6f8e637ab2c7afedc7c2bfe6a (diff)
downloadpdfium-74b147b5747cf65a8936d201b3ed5b32454365cc.tar.xz
Use static_cast for various CPDF_Object conversions.
This Cl converts a bunch of c-style casts to static_cast<CPDF_Object*>(). BUG=pdfium:201 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1428583003 .
Diffstat (limited to 'fpdfsdk')
-rw-r--r--fpdfsdk/src/fsdk_baseform.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/src/fsdk_baseform.cpp b/fpdfsdk/src/fsdk_baseform.cpp
index fad28e7b67..d1f1aedba9 100644
--- a/fpdfsdk/src/fsdk_baseform.cpp
+++ b/fpdfsdk/src/fsdk_baseform.cpp
@@ -2191,14 +2191,14 @@ void CPDFSDK_InterForm::GetFieldFromObjects(const CFX_PtrArray& objects,
int iCount = objects.GetSize();
for (int i = 0; i < iCount; i++) {
- CPDF_Object* pObject = (CPDF_Object*)objects[i];
- if (pObject == NULL)
+ CPDF_Object* pObject = static_cast<CPDF_Object*>(objects[i]);
+ if (!pObject)
continue;
if (pObject->IsString()) {
CFX_WideString csName = pObject->GetUnicodeText();
CPDF_FormField* pField = m_pInterForm->GetField(0, csName);
- if (pField != NULL)
+ if (pField)
fields.Add(pField);
} else if (pObject->IsDictionary()) {
if (m_pInterForm->IsValidFormField(pObject))