diff options
Diffstat (limited to 'src/ivicore/qivipendingreply.cpp')
-rw-r--r-- | src/ivicore/qivipendingreply.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/ivicore/qivipendingreply.cpp b/src/ivicore/qivipendingreply.cpp index 44a9452..7b55559 100644 --- a/src/ivicore/qivipendingreply.cpp +++ b/src/ivicore/qivipendingreply.cpp @@ -79,7 +79,6 @@ QIviPendingReplyWatcherPrivate::QIviPendingReplyWatcherPrivate(int userType, QIv , m_type(userType) , m_resultAvailable(false) , m_success(false) - , m_data() , m_callbackEngine(nullptr) { @@ -409,7 +408,7 @@ QVariant QIviPendingReplyWatcher::value() const bool QIviPendingReplyWatcher::isValid() const { Q_D(const QIviPendingReplyWatcher); - return d->m_type == -1 ? false : true; + return d->m_type != -1; } /*! @@ -695,7 +694,6 @@ void QIviPendingReplyBase::then(const QJSValue &success, const QJSValue &failed) { if (m_watcher) m_watcher->then(success, failed); - return; } /*! @@ -722,7 +720,6 @@ void QIviPendingReplyBase::setSuccess(const QVariant &value) { if (m_watcher) m_watcher->setSuccess(value); - return; } /*! @@ -745,7 +742,6 @@ void QIviPendingReplyBase::setFailed() { if (m_watcher) m_watcher->setFailed(); - return; } /*! @@ -759,7 +755,6 @@ void QIviPendingReplyBase::setSuccessNoCheck(const QVariant &value) { if (m_watcher) m_watcher->d_func()->setSuccess(value); - return; } /*! |