List:Commits« Previous MessageNext Message »
From:pharvey Date:October 10 2006 10:06am
Subject:Connector/ODBC 5 commit: r587 - trunk/SDK/MYSQLPlus/Library
View as plain text  
Modified:
   trunk/SDK/MYSQLPlus/Library/MConnection.cpp
Log:
FIX: replace the more dubious findChildren (because we are not using Q_OBJECT) with
getChildren()

Modified: trunk/SDK/MYSQLPlus/Library/MConnection.cpp
===================================================================
--- trunk/SDK/MYSQLPlus/Library/MConnection.cpp	2006-10-09 17:29:42 UTC (rev 586)
+++ trunk/SDK/MYSQLPlus/Library/MConnection.cpp	2006-10-10 08:06:23 UTC (rev 587)
@@ -5715,11 +5715,11 @@
 {
     MYODBCDbgEnter();
 
-    QList<MStatement*>          listStatements = findChildren<MStatement*>();
-    QListIterator<MStatement*>  i( listStatements );
+    QList<QObject*>          listStatements = MYODBCC::getChildren( this,
"MStatement" ); // findChildren<MStatement*>();
+    QListIterator<QObject*>  i( listStatements );
     while ( i.hasNext() )
     {
-        if ( i.next()->getState() > MStatement::STATE_S1 ) 
+        if ( ((MStatement*)i.next())->getState() > MStatement::STATE_S1 ) 
             MYODBCDbgReturn3( "%d", true );
     }
 
@@ -5730,11 +5730,11 @@
 {
     MYODBCDbgEnter();
 
-    QList<MStatement*>          listStatements = findChildren<MStatement*>();
-    QListIterator<MStatement*>  i( listStatements );
+    QList<QObject*>          listStatements = MYODBCC::getChildren( this,
"MStatement" ); // findChildren<MStatement*>();
+    QListIterator<QObject*>  i( listStatements );
     while ( i.hasNext() )
     {
-        if ( i.next()->isDataNeeded() ) 
+        if ( ((MStatement*)i.next())->isDataNeeded() ) 
             MYODBCDbgReturn3( "%d", true );
     }
 

Thread
Connector/ODBC 5 commit: r587 - trunk/SDK/MYSQLPlus/Librarypharvey10 Oct