From 4d495175043c399fdca6e1bb4c74ef176fc76fb4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 6 Aug 2025 11:29:57 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 4 Signed-off-by: Michele Calgaro --- doc/html/tqptrvector.html | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'doc/html/tqptrvector.html') diff --git a/doc/html/tqptrvector.html b/doc/html/tqptrvector.html index c9bec8723..91e0bb7ff 100644 --- a/doc/html/tqptrvector.html +++ b/doc/html/tqptrvector.html @@ -145,7 +145,7 @@ that position. i must be less than size().

bool TQPtrCollection::autoDelete () const

-

Returns the setting of the auto-delete option. The default is FALSE. +

Returns the setting of the auto-delete option. The default is false.

See also setAutoDelete().

int TQPtrVector::bsearch ( const type * d ) const @@ -226,9 +226,9 @@ type*. items are removed. If d is 0, the vector becomes empty.

If size >= 0, the vector is first resized to size. By default, size is -1. -

Returns TRUE if successful, i.e. size is the same as the +

Returns true if successful, i.e. size is the same as the current size, or size is larger and the memory has successfully -been allocated; otherwise returns FALSE. +been allocated; otherwise returns false.

See also resize(), insert(), and isEmpty().

int TQPtrVector::find ( const type * d, uint i = 0 ) const @@ -266,13 +266,13 @@ removed.

bool TQPtrVector::isEmpty () const

-

Returns TRUE if the vector is empty; otherwise returns FALSE. +

Returns true if the vector is empty; otherwise returns false.

See also count().

bool TQPtrVector::isNull () const

-

Returns TRUE if the vector is null; otherwise returns FALSE. +

Returns true if the vector is null; otherwise returns false.

A null vector has size() == 0 and data() == 0.

See also size(). @@ -288,8 +288,8 @@ copied into the vector. Only the pointers are copied (i.e. TQPtrVector::operator== ( const TQPtrVector<type> & v ) const -

Returns TRUE if this vector and v are equal; otherwise returns -FALSE. +

Returns true if this vector and v are equal; otherwise returns +false.

type * TQPtrVector::operator[] ( int i ) const

@@ -312,7 +312,7 @@ reference to the stream.

Removes the item at position i in the vector, if there is one. i must be less than size(). -

Returns TRUE if i is within range; otherwise returns FALSE. +

Returns true if i is within range; otherwise returns false.

See also take() and at().

bool TQPtrVector::resize ( uint size ) @@ -322,19 +322,19 @@ reference to the stream. vector becomes a null vector if size == 0.

Any items at position size or beyond in the vector are removed. New positions are initialized to 0. -

Returns TRUE if successful, i.e. if the memory was successfully -allocated; otherwise returns FALSE. +

Returns true if successful, i.e. if the memory was successfully +allocated; otherwise returns false.

See also size() and isNull().

void TQPtrCollection::setAutoDelete ( bool enable )

Sets the collection to auto-delete its contents if enable is -TRUE and to never delete them if enable is FALSE. +true and to never delete them if enable is false.

If auto-deleting is turned on, all the items in a collection are deleted when the collection itself is deleted. This is convenient if the collection has the only pointer to the items. -

The default setting is FALSE, for safety. If you turn it on, be +

The default setting is false, for safety. If you turn it on, be careful about copying the collection - you might find yourself with two collections deleting the same items.

Note that the auto-delete setting may also affect other functions -- cgit v1.2.3