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/tqpixmapcache.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/html/tqpixmapcache.html') diff --git a/doc/html/tqpixmapcache.html b/doc/html/tqpixmapcache.html index 2076161f2..057c99d32 100644 --- a/doc/html/tqpixmapcache.html +++ b/doc/html/tqpixmapcache.html @@ -125,7 +125,7 @@ pointer to become invalid. For this reason, we recommend you use This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Looks for a cached pixmap associated with the key in the cache. If a pixmap is found, the function sets pm to that pixmap and -returns TRUE; otherwise leaves pm alone and returns FALSE. +returns true; otherwise leaves pm alone and returns false.

Example:

         TQPixmap p;
@@ -154,11 +154,11 @@ deleted when more space is needed.
 
 This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code.
 

Inserts the pixmap pm associated with key into the cache. -Returns TRUE if successful, or FALSE if the pixmap is too big for the cache. +Returns true if successful, or false if the pixmap is too big for the cache.

Note: pm must be allocated on the heap (using new). -

If this function returns FALSE, you must delete pm yourself. -

If this function returns TRUE, do not use pm afterwards or +

If this function returns false, you must delete pm yourself. +

If this function returns true, do not use pm afterwards or keep references to it because any other insertions into the cache, whether from anywhere in the application or within TQt itself, could cause the pixmap to be discarded from the cache and the pointer to -- cgit v1.2.3