diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-08 12:59:07 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-10 12:35:00 +0900 |
| commit | 5198c9d3ac02aa9c7949f49e3cf374f683facb18 (patch) | |
| tree | 6b2429d827560c3abd4ae62a941d84ceebaa7a3b /languages/sql | |
| parent | 8c206b21c4f83d07c23d59989988291cfee38009 (diff) | |
| download | tdevelop-5198c9d3ac02aa9c7949f49e3cf374f683facb18.tar.gz tdevelop-5198c9d3ac02aa9c7949f49e3cf374f683facb18.zip | |
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'languages/sql')
| -rw-r--r-- | languages/sql/sqloutputwidget.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/languages/sql/sqloutputwidget.cpp b/languages/sql/sqloutputwidget.cpp index d845e6e0..83b8e74e 100644 --- a/languages/sql/sqloutputwidget.cpp +++ b/languages/sql/sqloutputwidget.cpp @@ -27,7 +27,7 @@ class TQCustomSqlCursor: public TQSqlCursor { public: - TQCustomSqlCursor( const TQString & query = TQString(), bool autopopulate = TRUE, TQSqlDatabase* db = 0 ) : + TQCustomSqlCursor( const TQString & query = TQString(), bool autopopulate = true, TQSqlDatabase* db = 0 ) : TQSqlCursor( TQString(), autopopulate, db ) { exec( query ); @@ -42,15 +42,15 @@ public: TQCustomSqlCursor( const TQCustomSqlCursor & other ): TQSqlCursor( other ) {} bool select( const TQString & /*filter*/, const TQSqlIndex & /*sort*/ = TQSqlIndex() ) { return exec( lastQuery() ); } - TQSqlIndex primaryIndex( bool /*prime*/ = TRUE ) const + TQSqlIndex primaryIndex( bool /*prime*/ = true ) const { return TQSqlIndex(); } - int insert( bool /*invalidate*/ = TRUE ) - { return FALSE; } - int update( bool /*invalidate*/ = TRUE ) - { return FALSE; } - int del( bool /*invalidate*/ = TRUE ) - { return FALSE; } - void setName( const TQString& /*name*/, bool /*autopopulate*/ = TRUE ) {} + int insert( bool /*invalidate*/ = true ) + { return false; } + int update( bool /*invalidate*/ = true ) + { return false; } + int del( bool /*invalidate*/ = true ) + { return false; } + void setName( const TQString& /*name*/, bool /*autopopulate*/ = true ) {} }; |
