From 49995ee35ff0b26e32303d77df619d3a2fbcb86b Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 19 May 2011 16:19:01 +0200 Subject: Tests: Fix some compile warnings. As they are now compiled by default. --- tests/auto/qsqlquery/tst_qsqlquery.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/auto/qsqlquery') diff --git a/tests/auto/qsqlquery/tst_qsqlquery.cpp b/tests/auto/qsqlquery/tst_qsqlquery.cpp index be2087dfc8..eb7ae9184e 100644 --- a/tests/auto/qsqlquery/tst_qsqlquery.cpp +++ b/tests/auto/qsqlquery/tst_qsqlquery.cpp @@ -1558,7 +1558,7 @@ void tst_QSqlQuery::transaction() if ( !q.exec( "rollback" ) ) { if ( db.driverName().startsWith( "QMYSQL" ) ) { - qDebug( "MySQL: " + tst_Databases::printError( q.lastError() ) ); + qDebug( "MySQL: %s", qPrintable(tst_Databases::printError( q.lastError() ) )); QSKIP( "MySQL transaction failed ", SkipSingle ); //non-fatal } else QFAIL( "Could not rollback transaction: " + tst_Databases::printError( q.lastError() ) ); @@ -1578,8 +1578,8 @@ void tst_QSqlQuery::transaction() QVERIFY_SQL( q2, exec( "select * from" + qtest + " where id = 42" ) ); if ( q2.next() ) - qDebug( QString( "DBMS '%1' doesn't support query based transactions with concurrent access" ).arg( - tst_Databases::dbToString( db ) ).toLatin1() ); + qDebug("DBMS '%s' doesn't support query based transactions with concurrent access", + qPrintable(tst_Databases::dbToString( db ))); QVERIFY_SQL( q, exec( "commit" ) ); -- cgit v1.2.3