diff options
author | tsepez <tsepez@chromium.org> | 2016-06-01 16:58:24 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-01 16:58:24 -0700 |
commit | 4ee98cd67354a2ab26134c0688768d4aa92350a2 (patch) | |
tree | 3b38b375a089eb0e02dfde75e0bec8871d79aec7 /xfa/fxjse/dynprop.cpp | |
parent | fb2a824f87f7096382681fd258906823ef93ebec (diff) | |
download | pdfium-4ee98cd67354a2ab26134c0688768d4aa92350a2.tar.xz |
Stop casting struct CFXJSE_ArgumentsImpl to unrelated class CFXJSE_Arguments
Remove the 'Impl entirely, and put the details into the class itself.
Review-Url: https://codereview.chromium.org/2036513002
Diffstat (limited to 'xfa/fxjse/dynprop.cpp')
-rw-r--r-- | xfa/fxjse/dynprop.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xfa/fxjse/dynprop.cpp b/xfa/fxjse/dynprop.cpp index 6e98d824e3..946fe42c1b 100644 --- a/xfa/fxjse/dynprop.cpp +++ b/xfa/fxjse/dynprop.cpp @@ -22,9 +22,8 @@ static void FXJSE_DynPropGetterAdapter_MethodCallback( new CFXJSE_Value(info.GetIsolate())); lpThisValue->ForceSetValue(info.This()); std::unique_ptr<CFXJSE_Value> lpRetValue(new CFXJSE_Value(info.GetIsolate())); - CFXJSE_ArgumentsImpl impl = {&info, lpRetValue.get()}; - lpClass->dynMethodCall(lpThisValue.get(), szFxPropName, - reinterpret_cast<CFXJSE_Arguments&>(impl)); + CFXJSE_Arguments impl(&info, lpRetValue.get()); + lpClass->dynMethodCall(lpThisValue.get(), szFxPropName, impl); if (!lpRetValue->DirectGetValue().IsEmpty()) { info.GetReturnValue().Set(lpRetValue->DirectGetValue()); } |