tst_QFocusFrame: fix -Wparantheses
Says Clang 10:
tst_qfocusframe.cpp:73:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
QTRY_VERIFY(focusFrame = window.findChild<QFocusFrame *>());
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[...]
tst_qfocusframe.cpp:73:28: note: place parentheses around the assignment to silence this warning
QTRY_VERIFY(focusFrame = window.findChild<QFocusFrame *>());
^
(
tst_qfocusframe.cpp:73:28: note: use '==' to turn this assignment into an equality comparison
QTRY_VERIFY(focusFrame = window.findChild<QFocusFrame *>());
^
==
Amends f1812aad89.
Pick-to: 6.4 6.3 6.2 5.15
Change-Id: I3920ab0da725b76fb6c19bbc7cde7920f351af4a
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
bb10
parent
0beb58cf58
commit
a17d6f869b
|
|
@ -70,7 +70,7 @@ void tst_QFocusFrame::focusFrameInsideScrollview()
|
|||
|
||||
window.show();
|
||||
QFocusFrame *focusFrame = nullptr;
|
||||
QTRY_VERIFY(focusFrame = window.findChild<QFocusFrame *>());
|
||||
QTRY_VERIFY((focusFrame = window.findChild<QFocusFrame *>()));
|
||||
const QPoint initialOffset = focusFrame->widget()->mapToGlobal(QPoint()) - focusFrame->mapToGlobal(QPoint());
|
||||
|
||||
tableView.scrollTo(itemModel->index(40, 0));
|
||||
|
|
|
|||
Loading…
Reference in New Issue