diff options
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()); } |