diff options
author | Francois Andriot <[email protected]> | 2013-08-15 21:03:13 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2013-08-15 21:03:13 +0200 |
commit | 16f24a61f80fef5f29c81182a3bcf3906bdee7a7 (patch) | |
tree | 9b920b0b186e87e46d52d9ae9bd6fc74af29d28a /src/sql/drivers | |
parent | 571716ebf8f6f16b92e676c4e5986cae3e577686 (diff) | |
download | qt3-16f24a61f80fef5f29c81182a3bcf3906bdee7a7.tar.gz qt3-16f24a61f80fef5f29c81182a3bcf3906bdee7a7.zip |
Fix 'format not a string literal' error
Diffstat (limited to 'src/sql/drivers')
-rw-r--r-- | src/sql/drivers/odbc/qsql_odbc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sql/drivers/odbc/qsql_odbc.cpp b/src/sql/drivers/odbc/qsql_odbc.cpp index 8b0b58b..46c5a6c 100644 --- a/src/sql/drivers/odbc/qsql_odbc.cpp +++ b/src/sql/drivers/odbc/qsql_odbc.cpp @@ -539,7 +539,7 @@ bool QODBCPrivate::setConnectionOptions( const QString& connOpts ) } else if ( val == "SQL_MODE_READ_WRITE" ) { v = SQL_MODE_READ_WRITE; } else { - qWarning( QString( "QODBCDriver::open: Unknown option value '%1'" ).arg( *it ) ); + qWarning( "QODBCDriver::open: Unknown option value '%s'", (*it).latin1() ); break; } r = SQLSetConnectAttr( hDbc, SQL_ATTR_ACCESS_MODE, (SQLPOINTER) v, 0 ); @@ -564,7 +564,7 @@ bool QODBCPrivate::setConnectionOptions( const QString& connOpts ) } else if ( val == "SQL_FALSE" ) { v = SQL_FALSE; } else { - qWarning( QString( "QODBCDriver::open: Unknown option value '%1'" ).arg( *it ) ); + qWarning( "QODBCDriver::open: Unknown option value '%s'", (*it).latin1() ); break; } r = SQLSetConnectAttr( hDbc, SQL_ATTR_METADATA_ID, (SQLPOINTER) v, 0 ); @@ -586,14 +586,14 @@ bool QODBCPrivate::setConnectionOptions( const QString& connOpts ) } else if ( val == "SQL_OPT_TRACE_ON" ) { v = SQL_OPT_TRACE_ON; } else { - qWarning( QString( "QODBCDriver::open: Unknown option value '%1'" ).arg( *it ) ); + qWarning( "QODBCDriver::open: Unknown option value '%s'", (*it).latin1() ); break; } r = SQLSetConnectAttr( hDbc, SQL_ATTR_TRACE, (SQLPOINTER) v, 0 ); } #ifdef QT_CHECK_RANGE else { - qWarning( QString("QODBCDriver::open: Unknown connection attribute '%1'").arg( opt ) ); + qWarning( "QODBCDriver::open: Unknown connection attribute '%s'", opt.latin1() ); } #endif if ( r != SQL_SUCCESS && r != SQL_SUCCESS_WITH_INFO ) { |