Removed needless null check.
The pointer 'receiver' has already been checked and dereferenced at this point, so a static_cast will not turn it into a null pointer, hence the check is not needed. This was caught by Coverity, CID 159389. Change-Id: I1772110e968c2216dc71d406ddb157b1ae930cb0 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
This commit is contained in:
parent
6bdc549abe
commit
2f4ce3b778
@ -3575,7 +3575,7 @@ bool QApplication::notify(QObject *receiver, QEvent *e)
|
||||
// We may get here if the widget is subscribed to a gesture,
|
||||
// but has not accepted TouchBegin. Propagate touch events
|
||||
// only if TouchBegin has been accepted.
|
||||
if (widget && widget->testAttribute(Qt::WA_WState_AcceptedTouchBeginEvent))
|
||||
if (widget->testAttribute(Qt::WA_WState_AcceptedTouchBeginEvent))
|
||||
res = d->notify_helper(widget, e);
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user