diff options
author | tsepez <tsepez@chromium.org> | 2016-05-31 14:22:09 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-31 14:22:09 -0700 |
commit | 29adee77d4a7566bc6832cc825198c0571426163 (patch) | |
tree | e8fd009fe853b4d8aad499d6e92cfff8f7dd6efa /xfa/fxfa/parser/xfa_script.h | |
parent | fb96900eeea15b252245b0caf4330a5ade369172 (diff) | |
download | pdfium-29adee77d4a7566bc6832cc825198c0571426163.tar.xz |
Replace void* with CFXJSE_HostObect and make wrapped objects inherit from it
This will avoid a re-occurrence of BUG 613607 should someone
again optimize away CXFA_Object's virtual dtor.
Review-Url: https://codereview.chromium.org/2019333006
Diffstat (limited to 'xfa/fxfa/parser/xfa_script.h')
-rw-r--r-- | xfa/fxfa/parser/xfa_script.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fxfa/parser/xfa_script.h b/xfa/fxfa/parser/xfa_script.h index 350588f8b5..da348f7a36 100644 --- a/xfa/fxfa/parser/xfa_script.h +++ b/xfa/fxfa/parser/xfa_script.h @@ -48,8 +48,8 @@ class CXFA_ValueArray : public CFX_ArrayTemplate<CFXJSE_Value*> { void GetAttributeObject(CXFA_ObjArray& objArray) { for (int32_t i = 0; i < GetSize(); i++) { - CXFA_Object* pObject = (CXFA_Object*)FXJSE_Value_ToObject(GetAt(i), NULL); - objArray.Add(pObject); + objArray.Add( + static_cast<CXFA_Object*>(FXJSE_Value_ToObject(GetAt(i), nullptr))); } } |