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/tqptrqueue.html | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'doc/html/tqptrqueue.html') diff --git a/doc/html/tqptrqueue.html b/doc/html/tqptrqueue.html index 5a4dbdc4c..8c003caf6 100644 --- a/doc/html/tqptrqueue.html +++ b/doc/html/tqptrqueue.html @@ -80,33 +80,33 @@ tail of the queue with enqueue() and retrieved from the h

TQPtrQueue::TQPtrQueue ()

-

Creates an empty queue with autoDelete() set to FALSE. +

Creates an empty queue with autoDelete() set to false.

TQPtrQueue::TQPtrQueue ( const TQPtrQueue<type> & queue )

Creates a queue from queue.

Only the pointers are copied; the items are not. The autoDelete() -flag is set to FALSE. +flag is set to false.

TQPtrQueue::~TQPtrQueue ()

Destroys the queue. Items in the queue are deleted if autoDelete() -is TRUE. +is true.

bool TQPtrQueue::autoDelete () const

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

See also setAutoDelete().

void TQPtrQueue::clear ()

Removes all items from the queue, and deletes them if autoDelete() -is TRUE. +is true.

See also remove().

uint TQPtrQueue::count () const @@ -145,7 +145,7 @@ changed. Returns 0 if the queue is empty.

bool TQPtrQueue::isEmpty () const

-

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

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

See also count(), dequeue(), and head().

TQPtrQueue::operator type * () const @@ -162,7 +162,7 @@ changed. Returns 0 if the queue is empty. queue.

This queue is first cleared and then each item in queue is enqueued to this queue. Only the pointers are copied. -

Warning: The autoDelete() flag is not modified. If it it TRUE for +

Warning: The autoDelete() flag is not modified. If it it true for both queue and this queue, deleting the two lists will cause double-deletion of the items.

TQDataStream & TQPtrQueue::read ( TQDataStream & s, TQPtrCollection::Item & item ) [virtual protected] @@ -176,20 +176,20 @@ reference to the stream.

bool TQPtrQueue::remove ()

-

Removes the head item from the queue, and returns TRUE if there -was an item, i.e. the queue wasn't empty; otherwise returns FALSE. -

The item is deleted if autoDelete() is TRUE. +

Removes the head item from the queue, and returns true if there +was an item, i.e. the queue wasn't empty; otherwise returns false. +

The item is deleted if autoDelete() is true.

See also head(), isEmpty(), and dequeue().

void TQPtrQueue::setAutoDelete ( bool enable )

-

Sets the queue to auto-delete its contents if enable is TRUE -and not to delete them if enable is FALSE. +

Sets the queue to auto-delete its contents if enable is true +and not to delete them if enable is false.

If auto-deleting is turned on, all the items in a queue are deleted when the queue itself is deleted. This can be quite convenient if the queue 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 queue: you might find yourself with two queues deleting the same items.

See also autoDelete(). -- cgit v1.2.3