diff options
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 ) {} }; |