diff options
Diffstat (limited to 'src/qml/types/qqmldelegatemodel.cpp')
-rw-r--r-- | src/qml/types/qqmldelegatemodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/types/qqmldelegatemodel.cpp b/src/qml/types/qqmldelegatemodel.cpp index f3a4179374..9c9a2196c7 100644 --- a/src/qml/types/qqmldelegatemodel.cpp +++ b/src/qml/types/qqmldelegatemodel.cpp @@ -81,7 +81,7 @@ struct DelegateModelGroupFunction: QV4::FunctionObject return QV4::Value::undefinedValue(); } - static QV4::Value call(QV4::Managed *that, QV4::CallData *callData) + static QV4::ReturnedValue call(QV4::Managed *that, QV4::CallData *callData) { DelegateModelGroupFunction *f = static_cast<DelegateModelGroupFunction *>(that); QQmlDelegateModelItemObject *o = callData->thisObject.as<QQmlDelegateModelItemObject>(); @@ -89,7 +89,7 @@ struct DelegateModelGroupFunction: QV4::FunctionObject that->engine()->current->throwTypeError(QStringLiteral("Not a valid VisualData object")); QV4::Value v = callData->argc ? callData->args[0] : QV4::Value::undefinedValue(); - return f->code(o->item, f->flag, v); + return f->code(o->item, f->flag, v).asReturnedValue(); } }; |