Disable warnings for tests using QSqlQuery assignment
Copying is deprecated as of 14f9f00fdb2dc428610c08e3d9d03e38e9602166. Change-Id: I235d45ff6769a29a4fdfd888c20dd9fe2fe81346 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> (cherry picked from commit 5f31da62bb45303b9a0f37a98c018aa710809158) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
180e41521c
commit
8efe5f6903
@ -1478,7 +1478,10 @@ void tst_QSqlQuery::forwardOnly()
|
||||
|
||||
QVERIFY( q.at() == QSql::AfterLastRow );
|
||||
|
||||
QT_WARNING_PUSH
|
||||
QT_WARNING_DISABLE_DEPRECATED
|
||||
QSqlQuery q2 = q;
|
||||
QT_WARNING_POP
|
||||
|
||||
QVERIFY( q2.isForwardOnly() );
|
||||
|
||||
@ -3875,6 +3878,8 @@ void tst_QSqlQuery::QTBUG_21884()
|
||||
*/
|
||||
void tst_QSqlQuery::QTBUG_16967()
|
||||
{
|
||||
QT_WARNING_PUSH
|
||||
QT_WARNING_DISABLE_DEPRECATED
|
||||
QSqlQuery q2;
|
||||
QFETCH(QString, dbName);
|
||||
{
|
||||
@ -3920,6 +3925,7 @@ void tst_QSqlQuery::QTBUG_16967()
|
||||
db.close();
|
||||
QCOMPARE(db.lastError().type(), QSqlError::NoError);
|
||||
}
|
||||
QT_WARNING_POP
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user