summaryrefslogtreecommitdiffstats
path: root/src/sql/tqsqlindex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sql/tqsqlindex.cpp')
-rw-r--r--src/sql/tqsqlindex.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/sql/tqsqlindex.cpp b/src/sql/tqsqlindex.cpp
index 0a8a8f5b5..750126a43 100644
--- a/src/sql/tqsqlindex.cpp
+++ b/src/sql/tqsqlindex.cpp
@@ -126,7 +126,7 @@ void TQSqlIndex::setName( const TQString& name )
void TQSqlIndex::append( const TQSqlField& field )
{
- append( field, FALSE );
+ append( field, false );
}
/*!
@@ -134,7 +134,7 @@ void TQSqlIndex::append( const TQSqlField& field )
Appends the field \a field to the list of indexed fields. The
field is appended with an ascending sort order, unless \a desc is
- TRUE.
+ true.
*/
void TQSqlIndex::append( const TQSqlField& field, bool desc )
@@ -145,19 +145,19 @@ void TQSqlIndex::append( const TQSqlField& field, bool desc )
/*!
- Returns TRUE if field \a i in the index is sorted in descending
- order; otherwise returns FALSE.
+ Returns true if field \a i in the index is sorted in descending
+ order; otherwise returns false.
*/
bool TQSqlIndex::isDescending( int i ) const
{
if ( sorts.at( i ) != sorts.end() )
return sorts[i];
- return FALSE;
+ return false;
}
/*!
- If \a desc is TRUE, field \a i is sorted in descending order.
+ If \a desc is true, field \a i is sorted in descending order.
Otherwise, field \a i is sorted in ascending order (the default).
If the field does not exist, nothing happens.
*/
@@ -180,19 +180,19 @@ void TQSqlIndex::setDescending( int i, bool desc )
"\a{prefix}.<fieldname>"
If \a sep is specified, each field is separated by \a sep. If \a
- verbose is TRUE (the default), each field contains a suffix
+ verbose is true (the default), each field contains a suffix
indicating an ASCending or DESCending sort order.
*/
TQString TQSqlIndex::toString( const TQString& prefix, const TQString& sep, bool verbose ) const
{
TQString s;
- bool comma = FALSE;
+ bool comma = false;
for ( uint i = 0; i < count(); ++i ) {
if( comma )
s += sep + " ";
s += createField( i, prefix, verbose );
- comma = TRUE;
+ comma = true;
}
return s;
}
@@ -207,7 +207,7 @@ TQString TQSqlIndex::toString( const TQString& prefix, const TQString& sep, bool
"\a{prefix}.<fieldname>"
- If \a verbose is TRUE (the default), each field contains a suffix
+ If \a verbose is true (the default), each field contains a suffix
indicating an ASCending or DESCending sort order.
Note that if you want to iterate over the list, you should iterate
@@ -233,7 +233,7 @@ TQStringList TQSqlIndex::toStringList( const TQString& prefix, bool verbose ) co
/*! \internal
Creates a string representing the field number \a i using prefix \a
- prefix. If \a verbose is TRUE, ASC or DESC is included in the field
+ prefix. If \a verbose is true, ASC or DESC is included in the field
description if the field is sorted in ASCending or DESCending order.
*/
@@ -263,11 +263,11 @@ TQSqlIndex TQSqlIndex::fromStringList( const TQStringList& l, const TQSqlCursor*
TQSqlIndex newSort;
for ( uint i = 0; i < l.count(); ++i ) {
TQString f = l[ i ];
- bool desc = FALSE;
+ bool desc = false;
if ( f.mid( f.length()-3 ) == "ASC" )
f = f.mid( 0, f.length()-3 );
if ( f.mid( f.length()-4 ) == "DESC" ) {
- desc = TRUE;
+ desc = true;
f = f.mid( 0, f.length()-4 );
}
int dot = f.findRev( '.' );