mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 08:14:48 +02:00
conversionPenaltyScore should accumulate
This commit is contained in:
parent
78bc24cb22
commit
426df9dc94
1 changed files with 1 additions and 1 deletions
|
@ -1027,7 +1027,7 @@ void ScriptMethodV8Proxy::call(const v8::FunctionCallbackInfo<v8::Value>& argume
|
|||
} else {
|
||||
qVarArgLists[i].append(varArgVal);
|
||||
const QVariant& converted = qVarArgLists[i].back();
|
||||
conversionPenaltyScore = _engine->computeCastPenalty(V8ScriptValue(_engine, argVal), methodArgTypeId);
|
||||
conversionPenaltyScore += _engine->computeCastPenalty(V8ScriptValue(_engine, argVal), methodArgTypeId);
|
||||
|
||||
// a lot of type conversion assistance thanks to https://stackoverflow.com/questions/28457819/qt-invoke-method-with-qvariant
|
||||
// A const_cast is needed because calling data() would detach the QVariant.
|
||||
|
|
Loading…
Reference in a new issue