diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2021-06-15 09:40:08 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2021-06-15 11:12:21 +0200 |
commit | 5c61499a9e8011539f39d57c88c868449dfd9cb3 (patch) | |
tree | d7443ae4e202be60fb1c23861a9c02224f37098d | |
parent | b3d40eab492d8ce1b069e878b3e46c344ad291b5 (diff) |
Avoid some double negation
Change-Id: Ia4f7e92115279d53369a3ccfb005899cabf76c7c
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
-rw-r--r-- | src/qml/qml/qqmljavascriptexpression.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/qqmljavascriptexpression.cpp b/src/qml/qml/qqmljavascriptexpression.cpp index 9ab46953f1..c4c37a32be 100644 --- a/src/qml/qml/qqmljavascriptexpression.cpp +++ b/src/qml/qml/qqmljavascriptexpression.cpp @@ -306,11 +306,11 @@ bool QQmlJavaScriptExpression::evaluate(void **a, const QMetaType *types, int ar Q_ASSERT(m_qmlScope.valueRef()); Q_ASSERT(function()); - const bool isUndefined = !function()->call( + const bool resultIsDefined = function()->call( scopeObject(), a, types, argc, static_cast<QV4::ExecutionContext *>(m_qmlScope.valueRef())); - return !capture.catchException(scope) && !isUndefined; + return !capture.catchException(scope) && resultIsDefined; } void QQmlPropertyCapture::captureProperty(QQmlNotifier *n) |