diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-06 17:33:43 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-07 11:57:25 +0900 |
| commit | 5a863a8932d14b99c5f838c4efa1618070d71b29 (patch) | |
| tree | 000bd50b5c488635f9663b16b7fbfe5380435a04 /src/sql/tqsqlselectcursor.cpp | |
| parent | 771af909e74927126fba90ec6e0298dc68d5bf4f (diff) | |
| download | tqt-5a863a8932d14b99c5f838c4efa1618070d71b29.tar.gz tqt-5a863a8932d14b99c5f838c4efa1618070d71b29.zip | |
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/sql/tqsqlselectcursor.cpp')
| -rw-r--r-- | src/sql/tqsqlselectcursor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sql/tqsqlselectcursor.cpp b/src/sql/tqsqlselectcursor.cpp index 77d0548ce..57a4a43ab 100644 --- a/src/sql/tqsqlselectcursor.cpp +++ b/src/sql/tqsqlselectcursor.cpp @@ -46,7 +46,7 @@ class TQSqlSelectCursorPrivate { public: - TQSqlSelectCursorPrivate() : populated( FALSE ) {} + TQSqlSelectCursorPrivate() : populated( false ) {} TQString query; bool populated : 1; }; @@ -72,7 +72,7 @@ public: ... TQSqlSelectCursor* cur = new TQSqlSelectCursor( "SELECT id, firstname, lastname FROM author" ); TQDataTable* table = new TQDataTable( this ); - table->setSqlCursor( cur, TRUE, TRUE ); + table->setSqlCursor( cur, true, true ); table->refresh(); ... cur->exec( "SELECT * FROM books" ); @@ -85,7 +85,7 @@ public: Constructs a read only cursor on database \a db using the query \a query. */ TQSqlSelectCursor::TQSqlSelectCursor( const TQString& query, TQSqlDatabase* db ) - : TQSqlCursor( TQString::null, FALSE, db ) + : TQSqlCursor( TQString::null, false, db ) { d = new TQSqlSelectCursorPrivate; d->query = query; @@ -140,7 +140,7 @@ void TQSqlSelectCursor::populateCursor() TQSqlRecordInfo inf = driver()->recordInfo( *(TQSqlQuery*)this ); for ( TQSqlRecordInfo::const_iterator it = inf.begin(); it != inf.end(); ++it ) TQSqlCursor::append( *it ); - d->populated = TRUE; + d->populated = true; } /*! \fn TQSqlIndex TQSqlSelectCursor::primaryIndex( bool ) const |
