From 41bb408dde90e755b07cd2ab8a9bdec7548c84b0 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 28 Feb 2012 22:31:39 -0600 Subject: Automated conversion from qt3 --- src/sql/drivers/mysql/qsql_mysql.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/sql/drivers/mysql') diff --git a/src/sql/drivers/mysql/qsql_mysql.cpp b/src/sql/drivers/mysql/qsql_mysql.cpp index d34e58500..aca83545f 100644 --- a/src/sql/drivers/mysql/qsql_mysql.cpp +++ b/src/sql/drivers/mysql/qsql_mysql.cpp @@ -53,7 +53,7 @@ # define Q_NO_MYSQL_EMBEDDED #endif -TQPtrDict *qSqlOpenExtDict(); +TQPtrDict *tqSqlOpenExtDict(); static int qMySqlConnectionCount = 0; static bool qMySqlInitHandledByUser = FALSE; @@ -237,7 +237,7 @@ bool TQMYSQLResult::fetchFirst() TQVariant TQMYSQLResult::data( int field ) { if ( !isSelect() || field >= (int) d->fieldTypes.count() ) { - qWarning( "TQMYSQLResult::data: column %d out of range", field ); + tqWarning( "TQMYSQLResult::data: column %d out of range", field ); return TQVariant(); } @@ -284,7 +284,7 @@ TQVariant TQMYSQLResult::data( int field ) return TQVariant( val ); } #ifdef QT_CHECK_RANGE - qWarning("TQMYSQLResult::data: unknown data type"); + tqWarning("TQMYSQLResult::data: unknown data type"); #endif return TQVariant(); } @@ -368,7 +368,7 @@ static void qServerInit() // but is vital for the embedded lib if ( mysql_server_init( 0, 0, 0 ) ) { # ifdef QT_CHECK_RANGE - qWarning( "TQMYSQLDriver::qServerInit: unable to start server." ); + tqWarning( "TQMYSQLDriver::qServerInit: unable to start server." ); # endif } @@ -404,7 +404,7 @@ TQMYSQLDriver::TQMYSQLDriver( MYSQL * con, TQObject * parent, const char * name void TQMYSQLDriver::init() { - qSqlOpenExtDict()->insert( this, new TQMYSQLOpenExtension(this) ); + tqSqlOpenExtDict()->insert( this, new TQMYSQLOpenExtension(this) ); d = new TQMYSQLDriverPrivate(); d->mysql = 0; qMySqlConnectionCount++; @@ -417,8 +417,8 @@ TQMYSQLDriver::~TQMYSQLDriver() qServerEnd(); delete d; - if ( !qSqlOpenExtDict()->isEmpty() ) { - TQSqlOpenExtension *ext = qSqlOpenExtDict()->take( this ); + if ( !tqSqlOpenExtDict()->isEmpty() ) { + TQSqlOpenExtension *ext = tqSqlOpenExtDict()->take( this ); delete ext; } } @@ -452,7 +452,7 @@ bool TQMYSQLDriver::open( const TQString&, const TQString&, int ) { - qWarning("TQMYSQLDriver::open(): This version of open() is no longer supported." ); + tqWarning("TQMYSQLDriver::open(): This version of open() is no longer supported." ); return FALSE; } @@ -482,7 +482,7 @@ bool TQMYSQLDriver::open( const TQString& db, if ( val == "TRUE" || val == "1" ) opts << tmp.left( idx ); else - qWarning( "TQMYSQLDriver::open: Illegal connect option value '%s'", tmp.latin1() ); + tqWarning( "TQMYSQLDriver::open: Illegal connect option value '%s'", tmp.latin1() ); } else { opts << tmp; } @@ -505,7 +505,7 @@ bool TQMYSQLDriver::open( const TQString& db, else if ( opt == "CLIENT_SSL" ) optionFlags |= CLIENT_SSL; else - qWarning( "TQMYSQLDriver::open: Unknown connect option '%s'", (*it).latin1() ); + tqWarning( "TQMYSQLDriver::open: Unknown connect option '%s'", (*it).latin1() ); } if ( (d->mysql = mysql_init((MYSQL*) 0)) && @@ -696,7 +696,7 @@ bool TQMYSQLDriver::beginTransaction() #endif if ( !isOpen() ) { #ifdef QT_CHECK_RANGE - qWarning( "TQMYSQLDriver::beginTransaction: Database not open" ); + tqWarning( "TQMYSQLDriver::beginTransaction: Database not open" ); #endif return FALSE; } @@ -714,7 +714,7 @@ bool TQMYSQLDriver::commitTransaction() #endif if ( !isOpen() ) { #ifdef QT_CHECK_RANGE - qWarning( "TQMYSQLDriver::commitTransaction: Database not open" ); + tqWarning( "TQMYSQLDriver::commitTransaction: Database not open" ); #endif return FALSE; } @@ -732,7 +732,7 @@ bool TQMYSQLDriver::rollbackTransaction() #endif if ( !isOpen() ) { #ifdef QT_CHECK_RANGE - qWarning( "TQMYSQLDriver::rollbackTransaction: Database not open" ); + tqWarning( "TQMYSQLDriver::rollbackTransaction: Database not open" ); #endif return FALSE; } -- cgit v1.2.1