qt5base-lts/tests/auto/sql/kernel
Friedemann Kleint 82a6f38873 tst_qsqlquery.cpp: Refactor runIntegralTypesMysqlTest()
Change 3370ab9119 introduced
warnings from MSVC:

tst_qsqlquery.cpp(4005): warning C4805: '==': unsafe mix of type 'const bool' and type 'int' in operation
tst_qsqlquery.cpp(4059): note: see reference to function template instantiation 'void runIntegralTypesMysqlTest<bool>(QSqlDatabase &,const QString &,const QString &,const bool,const T,const T)' being compiled
        with      [           T=bool       ]
tst_qsqlquery.cpp(4006): warning C4805: '==': unsafe mix of type 'const bool' and type 'int' in operation
tst_qsqlquery.cpp(4006): warning C4804: '/': unsafe use of type 'bool' in operation
tst_qsqlquery.cpp(4026): warning C4804: '+=': unsafe use of type 'bool' in operation

Extract an overload taking a QVector of values and use that for the
bool case instead of looping over min/max to generate a sequence of values
for bool.

Change-Id: I72583774e788b8df899f22ed1a64278217e664f6
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
2016-12-05 12:06:39 +00:00
..
qsql tst_qsql.cpp: Remove deprecated module include 2016-11-25 09:55:21 +00:00
qsqldatabase Adding notification feature to SQLite driver 2016-04-21 10:56:24 +00:00
qsqldriver QSql tests: Remove Windows CE and clean up code. 2016-03-10 15:07:02 +00:00
qsqlerror Updated license headers 2016-01-21 18:55:18 +00:00
qsqlfield Updated license headers 2016-01-21 18:55:18 +00:00
qsqlquery tst_qsqlquery.cpp: Refactor runIntegralTypesMysqlTest() 2016-12-05 12:06:39 +00:00
qsqlrecord Updated license headers 2016-01-21 18:55:18 +00:00
qsqlresult Updated license headers 2016-01-21 18:55:18 +00:00
qsqlthread QSql tests: Remove Windows CE and clean up code. 2016-03-10 15:07:02 +00:00
kernel.pro SQL: Change in QSqlResultPrivate::positionalToNamedBinding() 2012-12-10 21:23:35 +01:00