mirror of https://github.com/qt/qtbase.git
Get rid of empty optional methods in tst_QSqlQuery
No need for a virtual do-nothing destructor in a class that isn't inherited from. Defining an empty init merely makes QTest go to the trouble of calling it, which it could just as well skip. Change-Id: Ifd44c473c05fdeaaa7923d2ccdd0a13c8921b6bd Reviewed-by: Marc Mutz <marc.mutz@qt.io> Reviewed-by: Andy Shaw <andy.shaw@qt.io>
This commit is contained in:
parent
0828014b44
commit
69e445721c
|
@ -41,12 +41,10 @@ class tst_QSqlQuery : public QObject
|
|||
|
||||
public:
|
||||
tst_QSqlQuery();
|
||||
virtual ~tst_QSqlQuery();
|
||||
|
||||
public slots:
|
||||
void initTestCase();
|
||||
void cleanupTestCase();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
private slots:
|
||||
|
@ -289,10 +287,6 @@ tst_QSqlQuery::tst_QSqlQuery()
|
|||
qtest = qTableName("qtest", __FILE__, static_qtest_db);
|
||||
}
|
||||
|
||||
tst_QSqlQuery::~tst_QSqlQuery()
|
||||
{
|
||||
}
|
||||
|
||||
void tst_QSqlQuery::initTestCase()
|
||||
{
|
||||
QVERIFY(dbs.open());
|
||||
|
@ -317,10 +311,6 @@ void tst_QSqlQuery::cleanupTestCase()
|
|||
dbs.close();
|
||||
}
|
||||
|
||||
void tst_QSqlQuery::init()
|
||||
{
|
||||
}
|
||||
|
||||
void tst_QSqlQuery::cleanup()
|
||||
{
|
||||
if (QTest::currentTestFunction() == QLatin1String("crashQueryOnCloseDatabase"))
|
||||
|
|
Loading…
Reference in New Issue