Fix two variables' "may be used uninitialized" compiler warnings
Change-Id: Ie6063d7124b16681b3e39d465da21dd67206ebc3 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
7e64ecacb6
commit
5d356ae2bd
@ -563,7 +563,7 @@ void tst_QTcpSocket::bind()
|
||||
|
||||
std::unique_ptr<QTcpSocket> socket(newSocket());
|
||||
quint16 boundPort;
|
||||
qintptr fd;
|
||||
qintptr fd = 0;
|
||||
|
||||
if (successExpected) {
|
||||
bool randomPort = port == -1;
|
||||
|
@ -4865,7 +4865,7 @@ void tst_QTableView::selectWithHeader()
|
||||
|
||||
QVERIFY(QTest::qWaitForWindowExposed(&view));
|
||||
|
||||
QHeaderView *header;
|
||||
QHeaderView *header = nullptr;
|
||||
QPoint clickPos;
|
||||
QModelIndex lastIndex;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user