diff options
Diffstat (limited to 'doc/tqptrlist.doc')
-rw-r--r-- | doc/tqptrlist.doc | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/doc/tqptrlist.doc b/doc/tqptrlist.doc index 6d2c2dc91..d0de7e444 100644 --- a/doc/tqptrlist.doc +++ b/doc/tqptrlist.doc @@ -96,7 +96,7 @@ }; TQPtrList<Employee> list; - list.setAutoDelete( TRUE ); // the list owns the objects + list.setAutoDelete( true ); // the list owns the objects list.append( new Employee("John", "Doe", 50000) ); list.append( new Employee("Jane", "Williams", 80000) ); @@ -131,7 +131,7 @@ iterators may traverse the same list, independently of each other and of the current list item. - In the example above we make the call setAutoDelete(TRUE). + In the example above we make the call setAutoDelete(true). Enabling auto-deletion tells the list to delete items that are removed. The default is to not delete items when they are removed but this would cause a memory leak in the example because there @@ -208,8 +208,8 @@ /*! \fn bool TQPtrList::operator==(const TQPtrList<type> &list ) const - Compares this list with \a list. Returns TRUE if the lists contain - the same data; otherwise returns FALSE. + Compares this list with \a list. Returns true if the lists contain + the same data; otherwise returns false. */ /*! @@ -223,8 +223,8 @@ /*! \fn bool TQPtrList::operator!=(const TQPtrList<type> &list ) const - Compares this list with \a list. Returns TRUE if the lists contain - different data; otherwise returns FALSE. + Compares this list with \a list. Returns true if the lists contain + different data; otherwise returns false. */ @@ -244,7 +244,7 @@ /*! \fn bool TQPtrList::isEmpty() const - Returns TRUE if the list is empty; otherwise returns FALSE. + Returns true if the list is empty; otherwise returns false. \sa count() */ @@ -254,8 +254,8 @@ Inserts the \a item at position \a index in the list. - Returns TRUE if successful, i.e. if \a index is in range; - otherwise returns FALSE. The valid range is 0 to count() + Returns true if successful, i.e. if \a index is in range; + otherwise returns false. The valid range is 0 to count() (inclusively). The item is appended if \a index == count(). The inserted item becomes the current list item. @@ -270,7 +270,7 @@ Replaces the item at position \a index with the new \a item. - Returns TRUE if successful, i.e. \a index is in the range 0 to + Returns true if successful, i.e. \a index is in the range 0 to count()-1. \sa append(), current(), insert() @@ -331,8 +331,8 @@ Removes the item at position \a index in the list. - Returns TRUE if successful, i.e. if \a index is in range; - otherwise returns FALSE. The valid range is \c{0..(count() - 1)} + Returns true if successful, i.e. if \a index is in range; + otherwise returns false. The valid range is \c{0..(count() - 1)} inclusive. The removed item is deleted if \link setAutoDelete() @@ -355,8 +355,8 @@ Removes the current list item. - Returns TRUE if successful, i.e. if the current item isn't 0; - otherwise returns FALSE. + Returns true if successful, i.e. if the current item isn't 0; + otherwise returns false. The removed item is deleted if \link setAutoDelete() auto-deletion\endlink is enabled. @@ -379,8 +379,8 @@ Removes the first occurrence of \a item from the list. - Returns TRUE if successful, i.e. if \a item is in the list; - otherwise returns FALSE. + Returns true if successful, i.e. if \a item is in the list; + otherwise returns false. The removed item is deleted if \link setAutoDelete() auto-deletion\endlink is enabled. @@ -408,8 +408,8 @@ Removes the first occurrence of \a item from the list. - Returns TRUE if successful, i.e. if \a item is in the list; - otherwise returns FALSE. + Returns true if successful, i.e. if \a item is in the list; + otherwise returns false. The removed item is deleted if \link setAutoDelete() auto-deletion\endlink is enabled. @@ -456,8 +456,8 @@ /*! \fn bool TQPtrList::removeFirst() - Removes the first item from the list. Returns TRUE if successful, - i.e. if the list isn't empty; otherwise returns FALSE. + Removes the first item from the list. Returns true if successful, + i.e. if the list isn't empty; otherwise returns false. The removed item is deleted if \link setAutoDelete() auto-deletion\endlink is enabled. @@ -474,8 +474,8 @@ /*! \fn bool TQPtrList::removeLast() - Removes the last item from the list. Returns TRUE if successful, - i.e. if the list isn't empty; otherwise returns FALSE. + Removes the last item from the list. Returns true if successful, + i.e. if the list isn't empty; otherwise returns false. The removed item is deleted if \link setAutoDelete() auto-deletion\endlink is enabled. @@ -916,7 +916,7 @@ /*! \fn bool TQPtrListIterator::isEmpty() const - Returns TRUE if the list is empty; otherwise returns FALSE. + Returns true if the list is empty; otherwise returns false. \sa count() */ @@ -924,8 +924,8 @@ /*! \fn bool TQPtrListIterator::atFirst() const - Returns TRUE if the current iterator item is the first list item; - otherwise returns FALSE. + Returns true if the current iterator item is the first list item; + otherwise returns false. \sa toFirst(), atLast() */ @@ -933,8 +933,8 @@ /*! \fn bool TQPtrListIterator::atLast() const - Returns TRUE if the current iterator item is the last list item; - otherwise returns FALSE. + Returns true if the current iterator item is the last list item; + otherwise returns false. \sa toLast(), atFirst() */ @@ -1086,8 +1086,8 @@ \fn TQStrList::TQStrList( bool deepCopies ) Constructs an empty list of strings. Will make deep copies of all - inserted strings if \a deepCopies is TRUE, or use shallow copies - if \a deepCopies is FALSE. + inserted strings if \a deepCopies is true, or use shallow copies + if \a deepCopies is false. */ /*! @@ -1147,8 +1147,8 @@ \fn TQStrIList::TQStrIList( bool deepCopies ) Constructs a list of strings. Will make deep copies of all - inserted strings if \a deepCopies is TRUE, or use shallow copies - if \a deepCopies is FALSE. + inserted strings if \a deepCopies is true, or use shallow copies + if \a deepCopies is false. */ /*! @@ -1251,5 +1251,5 @@ \ingroup tools A TQPtrListAutoDelete is identical to a TQPtrList with - setAutoDelete(TRUE). + setAutoDelete(true). */ |