diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-28 18:11:49 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-03 19:23:45 +0900 |
commit | 0bd9d5459891e6fb17ee6802878f85e217cb9f54 (patch) | |
tree | 962f6ea26d1fab041fe3476fbbd64132ab8ada1b /kword/mailmerge/sql/KWMySqlCursor.h | |
parent | cb258b7e39ffa5662b57e7d9006e69172a378d7e (diff) | |
download | koffice-r14.1.4.tar.gz koffice-r14.1.4.zip |
Replace TRUE/FALSE with boolean values true/falser14.1.4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit cf85b9c285a2b9baa87c9d0cb9d683b48e82a475)
Diffstat (limited to 'kword/mailmerge/sql/KWMySqlCursor.h')
-rw-r--r-- | kword/mailmerge/sql/KWMySqlCursor.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kword/mailmerge/sql/KWMySqlCursor.h b/kword/mailmerge/sql/KWMySqlCursor.h index f08b62aea..d737c3ccf 100644 --- a/kword/mailmerge/sql/KWMySqlCursor.h +++ b/kword/mailmerge/sql/KWMySqlCursor.h @@ -38,7 +38,7 @@ class KWMySqlCursor: public TQSqlCursor { public: KWMySqlCursor( const TQString & query = TQString(), bool autopopulate = -TRUE, TQSqlDatabase* db = 0 ): TQSqlCursor( TQString(), autopopulate, db ) +true, TQSqlDatabase* db = 0 ): TQSqlCursor( TQString(), autopopulate, db ) { exec( query ); if ( autopopulate ) @@ -47,7 +47,7 @@ TRUE, TQSqlDatabase* db = 0 ): TQSqlCursor( TQString(), autopopulate, db ) setMode( TQSqlCursor::ReadOnly ); } KWMySqlCursor( const KWMySqlCursor & other ): TQSqlCursor( other ) {} - KWMySqlCursor( const TQSqlQuery & query, bool autopopulate = TRUE ): + KWMySqlCursor( const TQSqlQuery & query, bool autopopulate = true ): TQSqlCursor( TQString(), autopopulate ) { *(TQSqlQuery*)this = query; @@ -57,12 +57,12 @@ TQSqlCursor( TQString(), autopopulate ) } bool select( const TQString & /*filter*/, const TQSqlIndex & /*sort*/ = TQSqlIndex() ) { return exec( lastQuery() ); } - TQSqlIndex primaryIndex( bool /*prime*/ = TRUE ) const { return + 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 ) {} }; |