diff options
Diffstat (limited to 'src/sql/tqsqlrecord.cpp')
| -rw-r--r-- | src/sql/tqsqlrecord.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/src/sql/tqsqlrecord.cpp b/src/sql/tqsqlrecord.cpp index fba3d9e63..72b8e4867 100644 --- a/src/sql/tqsqlrecord.cpp +++ b/src/sql/tqsqlrecord.cpp @@ -52,7 +52,7 @@ class TQSqlRecordPrivate public: class info { public: - info() : nogen(FALSE){} + info() : nogen(false){} ~info() {} info( const info& other ) : field( other.field ), nogen( other.nogen ) @@ -225,9 +225,9 @@ bool TQSqlRecord::checkDetach() if ( sh->count > 1 ) { sh->deref(); sh = new TQSqlRecordShared( new TQSqlRecordPrivate( *sh->d ) ); - return TRUE; + return true; } - return FALSE; + return false; } /*! @@ -414,8 +414,8 @@ void TQSqlRecord::clear() } /*! - Returns TRUE if there are no fields in the record; otherwise - returns FALSE. + Returns true if there are no fields in the record; otherwise + returns false. */ bool TQSqlRecord::isEmpty() const @@ -425,22 +425,22 @@ bool TQSqlRecord::isEmpty() const /*! - Returns TRUE if there is a field in the record called \a name; - otherwise returns FALSE. + Returns true if there is a field in the record called \a name; + otherwise returns false. */ bool TQSqlRecord::contains( const TQString& name ) const { for ( uint i = 0; i < count(); ++i ) { if ( fieldName(i).upper() == name.upper() ) - return TRUE; + return true; } - return FALSE; + return false; } /*! Clears the value of all fields in the record. If \a nullify is - TRUE, (the default is FALSE), each field is set to NULL. + true, (the default is false), each field is set to NULL. */ void TQSqlRecord::clearValues( bool nullify ) @@ -456,7 +456,7 @@ void TQSqlRecord::clearValues( bool nullify ) /*! Sets the generated flag for the field called \a name to \a generated. If the field does not exist, nothing happens. Only - fields that have \a generated set to TRUE are included in the SQL + fields that have \a generated set to true are included in the SQL that is generated, e.g. by TQSqlCursor. \sa isGenerated() @@ -494,7 +494,7 @@ bool TQSqlRecord::isNull( int i ) if ( f ) { return f->isNull(); } - return TRUE; + return true; } /*! @@ -509,8 +509,8 @@ bool TQSqlRecord::isNull( const TQString& name ) /*! \overload - Returns TRUE if the field \a i is NULL or if there is no field at - position \a i; otherwise returns FALSE. + Returns true if the field \a i is NULL or if there is no field at + position \a i; otherwise returns false. \sa fieldName() */ @@ -520,12 +520,12 @@ bool TQSqlRecord::isNull( int i ) const if ( f ) { return f->isNull(); } - return TRUE; + return true; } /*! - Returns TRUE if the field called \a name is NULL or if there is no - field called \a name; otherwise returns FALSE. + Returns true if the field called \a name is NULL or if there is no + field called \a name; otherwise returns false. \sa position() */ @@ -560,8 +560,8 @@ void TQSqlRecord::setNull( const TQString& name ) /*! - Returns TRUE if the record has a field called \a name and this - field is to be generated (the default); otherwise returns FALSE. + Returns true if the record has a field called \a name and this + field is to be generated (the default); otherwise returns false. \sa setGenerated() */ @@ -573,15 +573,15 @@ bool TQSqlRecord::isGenerated( const TQString& name ) const /*! \overload - Returns TRUE if the record has a field at position \a i and this - field is to be generated (the default); otherwise returns FALSE. + Returns true if the record has a field at position \a i and this + field is to be generated (the default); otherwise returns false. \sa setGenerated() */ bool TQSqlRecord::isGenerated( int i ) const { if ( !field( i ) ) - return FALSE; + return false; return !sh->d->fieldInfo( i )->nogen; } @@ -601,13 +601,13 @@ bool TQSqlRecord::isGenerated( int i ) const TQString TQSqlRecord::toString( const TQString& prefix, const TQString& sep ) const { TQString pflist; - bool comma = FALSE; + bool comma = false; for ( uint i = 0; i < count(); ++i ){ if ( isGenerated( field(i)->name() ) ) { if( comma ) pflist += sep + " "; pflist += createField( i, prefix ); - comma = TRUE; + comma = true; } } return pflist; @@ -617,7 +617,7 @@ TQString TQSqlRecord::toString( const TQString& prefix, const TQString& sep ) co Returns a list of all the record's field names, each having the prefix \a prefix. - Note that fields which have generated set to FALSE are \e not + Note that fields which have generated set to false are \e not included. (See \l{isGenerated()}). If \a prefix is supplied, e.g. a table name, all fields are prefixed in the form: |
