From 8635e5b300298c01ada7dc51bfca76c3f02bfc14 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 24 Apr 2019 18:05:46 +0200 Subject: Use QV4::Scope::hasException() where applicable It is shorter and encapsulates the exception handling a bit. Change-Id: I8e2dc0eb3b930e222b8cb4852b73d99ca18a0379 Reviewed-by: Fabian Kosmale --- src/qml/qml/qqmldelayedcallqueue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/qml/qqmldelayedcallqueue.cpp') diff --git a/src/qml/qml/qqmldelayedcallqueue.cpp b/src/qml/qml/qqmldelayedcallqueue.cpp index 598de8d3a0..5291d46adc 100644 --- a/src/qml/qml/qqmldelayedcallqueue.cpp +++ b/src/qml/qml/qqmldelayedcallqueue.cpp @@ -76,7 +76,7 @@ void QQmlDelayedCallQueue::DelayedFunctionCall::execute(QV4::ExecutionEngine *en callback->call(jsCallData); - if (scope.engine->hasException) { + if (scope.hasException()) { QQmlError error = scope.engine->catchExceptionAsQmlError(); error.setDescription(error.description() + QLatin1String(" (exception occurred during delayed function evaluation)")); QQmlEnginePrivate::warning(QQmlEnginePrivate::get(scope.engine->qmlEngine()), error); -- cgit v1.2.3