summaryrefslogtreecommitdiffstats
path: root/src/kernel/tqpointarray.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/tqpointarray.cpp')
-rw-r--r--src/kernel/tqpointarray.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/kernel/tqpointarray.cpp b/src/kernel/tqpointarray.cpp
index 9d7bafccc..4a1e35f8c 100644
--- a/src/kernel/tqpointarray.cpp
+++ b/src/kernel/tqpointarray.cpp
@@ -123,11 +123,11 @@ const double Q_PI = 3.14159265358979323846; // pi // one more useful comment
/*!
Constructs a point array from the rectangle \a r.
- If \a closed is FALSE, then the point array just contains the
+ If \a closed is false, then the point array just contains the
following four points in the listed order: r.topLeft(),
r.topRight(), r.bottomRight() and r.bottomLeft().
- If \a closed is TRUE, then a fifth point is set to r.topLeft().
+ If \a closed is true, then a fifth point is set to r.topLeft().
*/
TQPointArray::TQPointArray( const TQRect &r, bool closed )
@@ -247,7 +247,7 @@ void TQPointArray::setPoint( uint index, int x, int y )
Resizes the array to \a nPoints and sets the points in the array to
the values taken from \a points.
- Returns TRUE if successful, or FALSE if the array could not be
+ Returns true if successful, or false if the array could not be
resized (normally due to lack of memory).
The example code creates an array with two points (1,2) and (3,4):
@@ -263,14 +263,14 @@ void TQPointArray::setPoint( uint index, int x, int y )
bool TQPointArray::setPoints( int nPoints, const TQCOORD *points )
{
if ( !resize(nPoints) )
- return FALSE;
+ return false;
int i = 0;
while ( nPoints-- ) { // make array of points
setPoint( i++, *points, *(points+1) );
points++;
points++;
}
- return TRUE;
+ return true;
}
/*!
@@ -279,7 +279,7 @@ bool TQPointArray::setPoints( int nPoints, const TQCOORD *points )
Resizes the array to \a nPoints and sets the points in the array
to the values taken from the variable argument list.
- Returns TRUE if successful, or FALSE if the array could not be
+ Returns true if successful, or false if the array could not be
resized (typically due to lack of memory).
The example code creates an array with two points (1,2) and (3,4):
@@ -299,7 +299,7 @@ bool TQPointArray::setPoints( int nPoints, int firstx, int firsty, ... )
{
va_list ap;
if ( !resize(nPoints) )
- return FALSE;
+ return false;
setPoint( 0, firstx, firsty ); // set first point
int i = 1, x, y;
nPoints--;
@@ -310,7 +310,7 @@ bool TQPointArray::setPoints( int nPoints, int firstx, int firsty, ... )
setPoint( i++, x, y );
}
va_end( ap );
- return TRUE;
+ return true;
}
/*! \overload
@@ -319,7 +319,7 @@ bool TQPointArray::setPoints( int nPoints, int firstx, int firsty, ... )
this point array, and resizes the point array if
\c{index+nPoints} exceeds the size of the array.
- Returns TRUE if successful, or FALSE if the array could not be
+ Returns true if successful, or false if the array could not be
resized (typically due to lack of memory).
*/
@@ -328,7 +328,7 @@ bool TQPointArray::putPoints( int index, int nPoints, const TQCOORD *points )
{
if ( index + nPoints > (int)size() ) { // extend array
if ( !resize( index + nPoints ) )
- return FALSE;
+ return false;
}
int i = index;
while ( nPoints-- ) { // make array of points
@@ -336,7 +336,7 @@ bool TQPointArray::putPoints( int index, int nPoints, const TQCOORD *points )
points++;
points++;
}
- return TRUE;
+ return true;
}
/*!
@@ -344,7 +344,7 @@ bool TQPointArray::putPoints( int index, int nPoints, const TQCOORD *points )
point array from position \a index, and resizes the point array if
\c{index+nPoints} exceeds the size of the array.
- Returns TRUE if successful, or FALSE if the array could not be
+ Returns true if successful, or false if the array could not be
resized (typically due to lack of memory).
The example code creates an array with three points (4,5), (6,7)
@@ -376,10 +376,10 @@ bool TQPointArray::putPoints( int index, int nPoints, int firstx, int firsty,
va_list ap;
if ( index + nPoints > (int)size() ) { // extend array
if ( !resize(index + nPoints) )
- return FALSE;
+ return false;
}
if ( nPoints <= 0 )
- return TRUE;
+ return true;
setPoint( index, firstx, firsty ); // set first point
int i = index + 1, x, y;
nPoints--;
@@ -390,7 +390,7 @@ bool TQPointArray::putPoints( int index, int nPoints, int firstx, int firsty,
setPoint( i++, x, y );
}
va_end( ap );
- return TRUE;
+ return true;
}
@@ -418,16 +418,16 @@ bool TQPointArray::putPoints( int index, int nPoints,
{
if ( index + nPoints > (int)size() ) { // extend array
if ( !resize(index + nPoints) )
- return FALSE;
+ return false;
}
if ( nPoints <= 0 )
- return TRUE;
+ return true;
int n = 0;
while( n < nPoints ) {
setPoint( index+n, from[fromIndex+n] );
n++;
}
- return TRUE;
+ return true;
}