From 5a863a8932d14b99c5f838c4efa1618070d71b29 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 6 Dec 2025 17:33:43 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 7 Signed-off-by: Michele Calgaro --- src/sql/tqsqlform.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/sql/tqsqlform.cpp') diff --git a/src/sql/tqsqlform.cpp b/src/sql/tqsqlform.cpp index c3da08e30..741df3a7a 100644 --- a/src/sql/tqsqlform.cpp +++ b/src/sql/tqsqlform.cpp @@ -52,7 +52,7 @@ class TQSqlFormPrivate { public: - TQSqlFormPrivate() : propertyMap( 0 ), buf( 0 ), dirty( FALSE ) {} + TQSqlFormPrivate() : propertyMap( 0 ), buf( 0 ), dirty( false ) {} ~TQSqlFormPrivate() { if ( propertyMap ) delete propertyMap; } TQStringList fld; TQDict wgt; @@ -172,7 +172,7 @@ void TQSqlForm::installPropertyMap( TQSqlPropertyMap * pmap ) void TQSqlForm::setRecord( TQSqlRecord* buf ) { - d->dirty = TRUE; + d->dirty = true; d->buf = buf; } @@ -186,7 +186,7 @@ void TQSqlForm::setRecord( TQSqlRecord* buf ) void TQSqlForm::insert( TQWidget * widget, const TQString& field ) { - d->dirty = TRUE; + d->dirty = true; d->wgt.insert( field, widget ); d->fld += field; } @@ -199,7 +199,7 @@ void TQSqlForm::insert( TQWidget * widget, const TQString& field ) void TQSqlForm::remove( const TQString& field ) { - d->dirty = TRUE; + d->dirty = true; if ( d->fld.find( field ) != d->fld.end() ) d->fld.remove( d->fld.find( field ) ); d->wgt.remove( field ); @@ -229,8 +229,8 @@ void TQSqlForm::remove( TQWidget * widget ) /*! Clears the values in all the widgets, and the fields they are - mapped to, in the form. If \a nullify is TRUE (the default is - FALSE), each field is also set to NULL. + mapped to, in the form. If \a nullify is true (the default is + false), each field is also set to NULL. */ void TQSqlForm::clearValues( bool nullify ) { @@ -248,7 +248,7 @@ void TQSqlForm::clearValues( bool nullify ) */ void TQSqlForm::clear() { - d->dirty = TRUE; + d->dirty = true; d->fld.clear(); clearMap(); } @@ -387,7 +387,7 @@ void TQSqlForm::sync() insert( d->wgt[ d->fld[ i ] ], d->buf->field( d->fld[ i ] ) ); } } - d->dirty = FALSE; + d->dirty = false; } /*! \internal -- cgit v1.2.3