Tests: Remove some unused member variables.
Fix warnings:
tst_qtcpsocket.cpp:245:9: warning: private field 'numConnections' is not used [-Wunused-private-field]
int numConnections;
^
tst_qtcpsocket.cpp:1834:9: warning: private field 'exitCode' is not used [-Wunused-private-field]
int exitCode;
tst_qcheckbox.cpp:86:10: warning: private field 'tmp' is not used [-Wunused-private-field]
uint tmp;
^
tst_qcheckbox.cpp:88:10: warning: private field 'tmp2' is not used [-Wunused-private-field]
uint tmp2;
Below warning is caused by code #ifdefed for OS X only, make it a local variable:
tst_qlabel.cpp:114:16: warning: private field 'test_edit' is not used [-Wunused-private-field]
QLineEdit *test_edit;
Change-Id: I53c755545fe2e7ca1f053f40c8c0e50aec2efcdd
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
bb10
parent
569785cb00
commit
4b8cda8a36
|
|
@ -242,7 +242,6 @@ private:
|
|||
|
||||
mutable int proxyAuthCalled;
|
||||
|
||||
int numConnections;
|
||||
static int loopLevel;
|
||||
|
||||
SocketPair *earlyConstructedSockets;
|
||||
|
|
@ -1831,7 +1830,6 @@ private slots:
|
|||
}
|
||||
#endif // !QT_NO_NETWORKPROXY
|
||||
private:
|
||||
int exitCode;
|
||||
QTcpSocket *socket;
|
||||
QByteArray socketData;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -83,9 +83,7 @@ private:
|
|||
uint press_count;
|
||||
uint release_count;
|
||||
int cur_state;
|
||||
uint tmp;
|
||||
QCheckBox *testWidget;
|
||||
uint tmp2;
|
||||
};
|
||||
|
||||
tst_QCheckBox::tst_QCheckBox()
|
||||
|
|
|
|||
|
|
@ -111,7 +111,6 @@ private:
|
|||
QLabel *testWidget;
|
||||
QPointer<Widget> test_box;
|
||||
QPointer<QLabel> test_label;
|
||||
QLineEdit *test_edit;
|
||||
};
|
||||
|
||||
// Testing get/set functions
|
||||
|
|
@ -196,7 +195,7 @@ void tst_QLabel::setBuddy()
|
|||
test_box = new Widget;
|
||||
test_label= new QLabel( test_box );
|
||||
test_label->setText( "&Test with a buddy" );
|
||||
test_edit = new QLineEdit( test_box );
|
||||
QWidget *test_edit = new QLineEdit( test_box );
|
||||
QVBoxLayout *layout = new QVBoxLayout(test_box);
|
||||
layout->addWidget(test_label);
|
||||
layout->addWidget(test_edit);
|
||||
|
|
|
|||
Loading…
Reference in New Issue